diff --git a/crates/typos-dict/src/lib.rs b/crates/typos-dict/src/lib.rs index a6001b78..88d86a10 100644 --- a/crates/typos-dict/src/lib.rs +++ b/crates/typos-dict/src/lib.rs @@ -2,6 +2,7 @@ #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] +#[rustfmt::skip] mod word_codegen; pub use crate::word_codegen::WORD; diff --git a/crates/typos-vars/src/lib.rs b/crates/typos-vars/src/lib.rs index 645271ec..bf7e7deb 100644 --- a/crates/typos-vars/src/lib.rs +++ b/crates/typos-vars/src/lib.rs @@ -2,6 +2,7 @@ #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] +#[rustfmt::skip] mod vars_codegen; pub use crate::vars_codegen::*; diff --git a/crates/typos-vars/tests/codegen.rs b/crates/typos-vars/tests/codegen.rs index 5afc8dfe..e90579ce 100644 --- a/crates/typos-vars/tests/codegen.rs +++ b/crates/typos-vars/tests/codegen.rs @@ -254,11 +254,7 @@ fn collect_correct(entry: &varcon_core::Entry, category: varcon::Category) -> Ha } } - if primary.len() == 1 { - primary - } else { - backup - } + if primary.len() == 1 { primary } else { backup } } fn ignore_variant(variant: &varcon_core::Variant) -> bool { diff --git a/crates/varcon/src/lib.rs b/crates/varcon/src/lib.rs index 458de0f4..9466de81 100644 --- a/crates/varcon/src/lib.rs +++ b/crates/varcon/src/lib.rs @@ -2,12 +2,10 @@ #![warn(clippy::print_stderr)] #![warn(clippy::print_stdout)] +#[rustfmt::skip] mod codegen; pub use codegen::*; -pub use varcon_core::borrowed::Cluster; -pub use varcon_core::borrowed::Entry; -pub use varcon_core::borrowed::Variant; pub use varcon_core::Category; #[cfg(feature = "flags")] pub use varcon_core::CategorySet; @@ -18,3 +16,6 @@ pub use varcon_core::Tag; #[cfg(feature = "flags")] pub use varcon_core::TagSet; pub use varcon_core::Type; +pub use varcon_core::borrowed::Cluster; +pub use varcon_core::borrowed::Entry; +pub use varcon_core::borrowed::Variant;