Skip to content

Commit 6fb524a

Browse files
committed
./x.py fmt
1 parent df3776b commit 6fb524a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustc_data_structures/profiling.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ use parking_lot::RwLock;
9999

100100
/// MmapSerializatioSink is faster on macOS and Linux
101101
/// but FileSerializationSink is faster on Windows
102-
#[cfg(all(not(windows),not(target_arch="wasm32")))]
102+
#[cfg(all(not(windows), not(target_arch = "wasm32")))]
103103
type SerializationSink = measureme::MmapSerializationSink;
104-
#[cfg(all(windows,not(target_arch="wasm32")))]
104+
#[cfg(all(windows, not(target_arch = "wasm32")))]
105105
type SerializationSink = measureme::FileSerializationSink;
106-
#[cfg(target_arch="wasm32")]
106+
#[cfg(target_arch = "wasm32")]
107107
type SerializationSink = measureme::ByteVecSink;
108108

109109
type Profiler = measureme::Profiler<SerializationSink>;
@@ -604,7 +604,7 @@ pub fn duration_to_secs_str(dur: std::time::Duration) -> String {
604604
}
605605

606606
// Memory reporting
607-
#[cfg(all(unix,not(target_arch="wasm32")))]
607+
#[cfg(all(unix, not(target_arch = "wasm32")))]
608608
fn get_resident() -> Option<usize> {
609609
let field = 1;
610610
let contents = fs::read("/proc/self/statm").ok()?;
@@ -614,7 +614,7 @@ fn get_resident() -> Option<usize> {
614614
Some(npages * 4096)
615615
}
616616

617-
#[cfg(all(windows,not(target_arch="wasm32")))]
617+
#[cfg(all(windows, not(target_arch = "wasm32")))]
618618
fn get_resident() -> Option<usize> {
619619
use std::mem::{self, MaybeUninit};
620620
use winapi::shared::minwindef::DWORD;
@@ -633,7 +633,7 @@ fn get_resident() -> Option<usize> {
633633
}
634634
}
635635

636-
#[cfg(target_arch="wasm32")]
636+
#[cfg(target_arch = "wasm32")]
637637
fn get_resident() -> Option<usize> {
638638
None
639639
}

0 commit comments

Comments
 (0)