Skip to content

Commit

Permalink
Do not format prelude module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tcharding committed Jun 7, 2022
1 parent 59fd7bd commit 1708b0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Expand Up @@ -171,6 +171,7 @@ mod io_extras {
}
}

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

0 comments on commit 1708b0d

Please sign in to comment.