Skip to content

Commit

Permalink
Lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shylock-Hg committed May 4, 2024
1 parent 47d3c68 commit e409c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/config/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,9 @@ impl Config {
}

pub fn contains(&self, name: &str) -> bool {
self.types.contains_key(name) || self.unions.contains_key(name) || self.enums.contains_key(name)
self.types.contains_key(name)
|| self.unions.contains_key(name)
|| self.enums.contains_key(name)
}

pub fn from_json(json: &str) -> Result<Self> {
Expand Down
1 change: 0 additions & 1 deletion src/config/from_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ where
cache,
protected,
tag,
..Default::default()
}
})
}
Expand Down

0 comments on commit e409c28

Please sign in to comment.