File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ forget_non_drop = "allow"
177
177
format_collect = " allow"
178
178
filter_map_bool_then = " allow"
179
179
from_str_radix_10 = " allow"
180
- get_first = " allow"
181
180
if_same_then_else = " allow"
182
181
large_enum_variant = " allow"
183
182
match_like_matches_macro = " allow"
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ impl SourceToDefCtx<'_, '_> {
142
142
Some ( parent_declaration) => self . module_to_def ( parent_declaration) ,
143
143
None => {
144
144
let file_id = src. file_id . original_file ( self . db . upcast ( ) ) ;
145
- self . file_to_def ( file_id) . get ( 0 ) . copied ( )
145
+ self . file_to_def ( file_id) . first ( ) . copied ( )
146
146
}
147
147
} ?;
148
148
@@ -155,7 +155,7 @@ impl SourceToDefCtx<'_, '_> {
155
155
pub ( super ) fn source_file_to_def ( & self , src : InFile < ast:: SourceFile > ) -> Option < ModuleId > {
156
156
let _p = profile:: span ( "source_file_to_def" ) ;
157
157
let file_id = src. file_id . original_file ( self . db . upcast ( ) ) ;
158
- self . file_to_def ( file_id) . get ( 0 ) . copied ( )
158
+ self . file_to_def ( file_id) . first ( ) . copied ( )
159
159
}
160
160
161
161
pub ( super ) fn trait_to_def ( & mut self , src : InFile < ast:: Trait > ) -> Option < TraitId > {
@@ -370,7 +370,7 @@ impl SourceToDefCtx<'_, '_> {
370
370
}
371
371
}
372
372
373
- let def = self . file_to_def ( src. file_id . original_file ( self . db . upcast ( ) ) ) . get ( 0 ) . copied ( ) ?;
373
+ let def = self . file_to_def ( src. file_id . original_file ( self . db . upcast ( ) ) ) . first ( ) . copied ( ) ?;
374
374
Some ( def. into ( ) )
375
375
}
376
376
You can’t perform that action at this time.
0 commit comments