mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-13 01:06:22 +00:00
minor: New clippy lints
This commit is contained in:
parent
6725e046df
commit
4b6007115a
92 changed files with 180 additions and 201 deletions
|
|
@ -699,7 +699,7 @@ impl Module {
|
|||
let source_map = tree_source_maps.impl_(loc.id.value).item();
|
||||
let node = &tree[loc.id.value];
|
||||
let file_id = loc.id.file_id();
|
||||
if file_id.macro_file().map_or(false, |it| it.is_builtin_derive(db.upcast())) {
|
||||
if file_id.macro_file().is_some_and(|it| it.is_builtin_derive(db.upcast())) {
|
||||
// these expansion come from us, diagnosing them is a waste of resources
|
||||
// FIXME: Once we diagnose the inputs to builtin derives, we should at least extract those diagnostics somehow
|
||||
continue;
|
||||
|
|
@ -724,7 +724,7 @@ impl Module {
|
|||
}
|
||||
|
||||
let trait_ = impl_def.trait_(db);
|
||||
let trait_is_unsafe = trait_.map_or(false, |t| t.is_unsafe(db));
|
||||
let trait_is_unsafe = trait_.is_some_and(|t| t.is_unsafe(db));
|
||||
let impl_is_negative = impl_def.is_negative(db);
|
||||
let impl_is_unsafe = impl_def.is_unsafe(db);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue