Enable clippy::needless_option_as_deref
(#8775)
This PR enables the [`clippy::needless_option_as_deref`](https://rust-lang.github.io/rust-clippy/master/index.html#/needless_option_as_deref) rule and fixes the outstanding violations. Release Notes: - N/A
This commit is contained in:
parent
2964a01d73
commit
56f0418c93
2 changed files with 1 additions and 2 deletions
|
@ -326,7 +326,7 @@ impl DisplayMap {
|
||||||
.read(cx)
|
.read(cx)
|
||||||
.as_singleton()
|
.as_singleton()
|
||||||
.and_then(|buffer| buffer.read(cx).language());
|
.and_then(|buffer| buffer.read(cx).language());
|
||||||
language_settings(language.as_deref(), None, cx).tab_size
|
language_settings(language, None, cx).tab_size
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
@ -96,7 +96,6 @@ fn run_clippy(args: ClippyArgs) -> Result<()> {
|
||||||
"clippy::let_underscore_future",
|
"clippy::let_underscore_future",
|
||||||
"clippy::map_entry",
|
"clippy::map_entry",
|
||||||
"clippy::needless_lifetimes",
|
"clippy::needless_lifetimes",
|
||||||
"clippy::needless_option_as_deref",
|
|
||||||
"clippy::needless_update",
|
"clippy::needless_update",
|
||||||
"clippy::never_loop",
|
"clippy::never_loop",
|
||||||
"clippy::non_canonical_clone_impl",
|
"clippy::non_canonical_clone_impl",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue