File tree 2 files changed +2
-2
lines changed
src/tools/rust-analyzer/crates
ide-completion/src/completions
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ pub(crate) fn const_eval_discriminant_variant(
287
287
}
288
288
289
289
let repr = db. enum_data ( loc. parent ) . repr ;
290
- let is_signed = Option :: is_none_or ( repr. and_then ( |repr| repr. int ) , |int| int. is_signed ( ) ) ;
290
+ let is_signed = repr. and_then ( |repr| repr. int ) . is_none_or ( |int| int. is_signed ( ) ) ;
291
291
292
292
let mir_body = db. monomorphized_mir_body (
293
293
def,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub(crate) fn complete_mod(
65
65
. iter ( )
66
66
. filter ( |& submodule_candidate_file| submodule_candidate_file != module_definition_file)
67
67
. filter ( |& submodule_candidate_file| {
68
- Option :: is_none_or ( module_declaration_file , |it| it != submodule_candidate_file)
68
+ module_declaration_file . is_none_or ( |it| it != submodule_candidate_file)
69
69
} )
70
70
. filter_map ( |submodule_file| {
71
71
let submodule_path = source_root. path_for_file ( & submodule_file) ?;
You can’t perform that action at this time.
0 commit comments