Skip to content

Commit 1ba01de

Browse files
committed
Fix format of attrs
1 parent d7c7764 commit 1ba01de

File tree

2 files changed

+48
-12
lines changed

2 files changed

+48
-12
lines changed

library/std/src/os/unix/net/datagram.rs

+32-8
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,14 @@ impl UnixDatagram {
397397
///
398398
/// # Examples
399399
///
400-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
401-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
400+
#[cfg_attr(
401+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
402+
doc = "```no_run"
403+
)]
404+
#[cfg_attr(
405+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
406+
doc = "```ignore"
407+
)]
402408
/// #![feature(unix_socket_ancillary_data)]
403409
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
404410
/// use std::io::IoSliceMut;
@@ -447,8 +453,14 @@ impl UnixDatagram {
447453
///
448454
/// # Examples
449455
///
450-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
451-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
456+
#[cfg_attr(
457+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
458+
doc = "```no_run"
459+
)]
460+
#[cfg_attr(
461+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
462+
doc = "```ignore"
463+
)]
452464
/// #![feature(unix_socket_ancillary_data)]
453465
/// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
454466
/// use std::io::IoSliceMut;
@@ -588,8 +600,14 @@ impl UnixDatagram {
588600
///
589601
/// # Examples
590602
///
591-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
592-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
603+
#[cfg_attr(
604+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
605+
doc = "```no_run"
606+
)]
607+
#[cfg_attr(
608+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
609+
doc = "```ignore"
610+
)]
593611
/// #![feature(unix_socket_ancillary_data)]
594612
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
595613
/// use std::io::IoSlice;
@@ -630,8 +648,14 @@ impl UnixDatagram {
630648
///
631649
/// # Examples
632650
///
633-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
634-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
651+
#[cfg_attr(
652+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
653+
doc = "```no_run"
654+
)]
655+
#[cfg_attr(
656+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
657+
doc = "```ignore"
658+
)]
635659
/// #![feature(unix_socket_ancillary_data)]
636660
/// use std::os::unix::net::{UnixDatagram, SocketAncillary};
637661
/// use std::io::IoSlice;

library/std/src/os/unix/net/stream.rs

+16-4
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,14 @@ impl UnixStream {
485485
///
486486
/// # Examples
487487
///
488-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
489-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
488+
#[cfg_attr(
489+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
490+
doc = "```no_run"
491+
)]
492+
#[cfg_attr(
493+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
494+
doc = "```ignore"
495+
)]
490496
/// #![feature(unix_socket_ancillary_data)]
491497
/// use std::os::unix::net::{UnixStream, SocketAncillary, AncillaryData};
492498
/// use std::io::IoSliceMut;
@@ -534,8 +540,14 @@ impl UnixStream {
534540
///
535541
/// # Examples
536542
///
537-
#[cfg_attr(any(target_os = "android", target_os = "linux", target_os = "cygwin"), doc = "```no_run")]
538-
#[cfg_attr(not(any(target_os = "android", target_os = "linux", target_os = "cygwin")), doc = "```ignore")]
543+
#[cfg_attr(
544+
any(target_os = "android", target_os = "linux", target_os = "cygwin"),
545+
doc = "```no_run"
546+
)]
547+
#[cfg_attr(
548+
not(any(target_os = "android", target_os = "linux", target_os = "cygwin")),
549+
doc = "```ignore"
550+
)]
539551
/// #![feature(unix_socket_ancillary_data)]
540552
/// use std::os::unix::net::{UnixStream, SocketAncillary};
541553
/// use std::io::IoSlice;

0 commit comments

Comments
 (0)