From 1708b0d509bf2a85d415b71a18324cf0afa84eb7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 6 Jun 2022 14:32:19 +1000 Subject: [PATCH] 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. --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ebc9ac1709..061a8ed977 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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};