File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
ide-completion/src/completions Expand file tree Collapse file tree 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(
287287 }
288288
289289 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 ( ) ) ;
291291
292292 let mir_body = db. monomorphized_mir_body (
293293 def,
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ pub(crate) fn complete_mod(
6565 . iter ( )
6666 . filter ( |& submodule_candidate_file| submodule_candidate_file != module_definition_file)
6767 . 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)
6969 } )
7070 . filter_map ( |submodule_file| {
7171 let submodule_path = source_root. path_for_file ( & submodule_file) ?;
You can’t perform that action at this time.
0 commit comments