Skip to content

Commit 3c7eae0

Browse files
chore: bump owo-colors and some clippy fix (#236)
Co-authored-by: hzlinyiyu <hzlinyiyu@corp.netease.com>
1 parent 1e4085e commit 3c7eae0

File tree

5 files changed

+6
-9
lines changed

5 files changed

+6
-9
lines changed

autocorrect-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ clap = { version = "4", features = ['derive'] }
2121
ignore = "0.4"
2222
log = "0.4"
2323
num_cpus = "1.13.0"
24-
owo-colors = "3"
24+
owo-colors = "4.2.0"
2525
threadpool = "1.8.1"
2626

2727
# Config template from remote

autocorrect-node/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
extern crate napi_build;
22

33
fn main() {
4-
napi_build::setup();
4+
napi_build::setup();
55
}

autocorrect/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ autocorrect-derive = { version = "0.3.0", path = "../autocorrect-derive" }
1919
diff = "0.1.13"
2020
ignore = "0.4"
2121
lazy_static = "1.4.0"
22-
owo-colors = "3"
22+
owo-colors = "4.2.0"
2323
pest = "2.6.1"
2424
pest_derive = "2.6.1"
2525
regex = "1"
@@ -30,7 +30,7 @@ serde_yaml = "0.9.9"
3030

3131
[dev-dependencies]
3232
criterion = "0.5"
33-
indoc = "1.0"
33+
indoc = "2.0.5"
3434
pretty_assertions = "1.0.0"
3535

3636
[build-dependencies]

autocorrect/src/config/severity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'a> Deserialize<'a> for SeverityMode {
2828
{
2929
struct SeverityModeVisitor;
3030

31-
impl<'de> serde::de::Visitor<'de> for SeverityModeVisitor {
31+
impl serde::de::Visitor<'_> for SeverityModeVisitor {
3232
type Value = SeverityMode;
3333

3434
fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result {

autocorrect/src/config/toggle.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ impl Toggle {
4444
}
4545

4646
pub fn is_none(&self) -> bool {
47-
match self {
48-
Toggle::None => true,
49-
_ => false,
50-
}
47+
matches!(self, Toggle::None)
5148
}
5249

5350
pub fn match_rule(&self, rule_name: &str) -> Option<bool> {

0 commit comments

Comments
 (0)