mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 02:06:57 +00:00
minor: New clippy lints
This commit is contained in:
parent
6725e046df
commit
4b6007115a
92 changed files with 180 additions and 201 deletions
|
|
@ -46,7 +46,7 @@ impl ManifestPath {
|
|||
}
|
||||
|
||||
pub fn is_rust_manifest(&self) -> bool {
|
||||
self.file.extension().map_or(false, |ext| ext == "rs")
|
||||
self.file.extension() == Some("rs")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue