diff --git a/autocorrect-cli/Cargo.toml b/autocorrect-cli/Cargo.toml index 83d3b38..e899a06 100644 --- a/autocorrect-cli/Cargo.toml +++ b/autocorrect-cli/Cargo.toml @@ -21,7 +21,7 @@ clap = { version = "4", features = ['derive'] } ignore = "0.4" log = "0.4" num_cpus = "1.13.0" -owo-colors = "3" +owo-colors = "4.2.0" threadpool = "1.8.1" # Config template from remote diff --git a/autocorrect-node/build.rs b/autocorrect-node/build.rs index 1f866b6..9fc2367 100644 --- a/autocorrect-node/build.rs +++ b/autocorrect-node/build.rs @@ -1,5 +1,5 @@ extern crate napi_build; fn main() { - napi_build::setup(); + napi_build::setup(); } diff --git a/autocorrect/Cargo.toml b/autocorrect/Cargo.toml index c253cef..e6d777b 100644 --- a/autocorrect/Cargo.toml +++ b/autocorrect/Cargo.toml @@ -19,7 +19,7 @@ autocorrect-derive = { version = "0.3.0", path = "../autocorrect-derive" } diff = "0.1.13" ignore = "0.4" lazy_static = "1.4.0" -owo-colors = "3" +owo-colors = "4.2.0" pest = "2.6.1" pest_derive = "2.6.1" regex = "1" @@ -30,7 +30,7 @@ serde_yaml = "0.9.9" [dev-dependencies] criterion = "0.5" -indoc = "1.0" +indoc = "2.0.5" pretty_assertions = "1.0.0" [build-dependencies] diff --git a/autocorrect/src/config/severity.rs b/autocorrect/src/config/severity.rs index 2572d1f..796eb3b 100644 --- a/autocorrect/src/config/severity.rs +++ b/autocorrect/src/config/severity.rs @@ -28,7 +28,7 @@ impl<'a> Deserialize<'a> for SeverityMode { { struct SeverityModeVisitor; - impl<'de> serde::de::Visitor<'de> for SeverityModeVisitor { + impl serde::de::Visitor<'_> for SeverityModeVisitor { type Value = SeverityMode; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { diff --git a/autocorrect/src/config/toggle.rs b/autocorrect/src/config/toggle.rs index 997168e..808e3ff 100644 --- a/autocorrect/src/config/toggle.rs +++ b/autocorrect/src/config/toggle.rs @@ -44,10 +44,7 @@ impl Toggle { } pub fn is_none(&self) -> bool { - match self { - Toggle::None => true, - _ => false, - } + matches!(self, Toggle::None) } pub fn match_rule(&self, rule_name: &str) -> Option {