Skip to content

Commit ce8977b

Browse files
committed
Do not format prelude module
In preparation for running the formatter on all source files at the root of the crate; skip formatting `prelude` module because we use unconventional import statements so they to save writing a million compiler attributes.
1 parent 7ff8872 commit ce8977b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ mod io_extras {
157157
}
158158
}
159159

160+
#[rustfmt::skip]
160161
mod prelude {
161162
#[cfg(all(not(feature = "std"), not(test)))]
162163
pub use alloc::{string::{String, ToString}, vec::Vec, boxed::Box, borrow::{Cow, ToOwned}, slice, rc, sync};

0 commit comments

Comments
 (0)