File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,6 @@ non_canonical_partial_ord_impl = "allow"
181
181
self_named_constructors = " allow"
182
182
too_many_arguments = " allow"
183
183
type_complexity = " allow"
184
- unnecessary_cast = " allow"
185
184
unnecessary_filter_map = " allow"
186
185
unnecessary_lazy_evaluations = " allow"
187
186
unnecessary_mut_passed = " allow"
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ impl SearchMode {
297
297
SearchMode :: Exact => candidate. eq_ignore_ascii_case ( query) ,
298
298
SearchMode :: Prefix => {
299
299
query. len ( ) <= candidate. len ( ) && {
300
- let prefix = & candidate[ ..query. len ( ) as usize ] ;
300
+ let prefix = & candidate[ ..query. len ( ) ] ;
301
301
if case_sensitive {
302
302
prefix == query
303
303
} else {
@@ -446,7 +446,7 @@ fn search_maps(
446
446
let end = ( value & 0xFFFF_FFFF ) as usize ;
447
447
let start = ( value >> 32 ) as usize ;
448
448
let ImportMap { item_to_info_map, importables, .. } = & * import_maps[ import_map_idx] ;
449
- let importables = & importables[ start as usize ..end] ;
449
+ let importables = & importables[ start..end] ;
450
450
451
451
let iter = importables
452
452
. iter ( )
Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ fn emit_def_diagnostic_(
903
903
}
904
904
DefDiagnosticKind :: InvalidDeriveTarget { ast, id } => {
905
905
let node = ast. to_node ( db. upcast ( ) ) ;
906
- let derive = node. attrs ( ) . nth ( * id as usize ) ;
906
+ let derive = node. attrs ( ) . nth ( * id) ;
907
907
match derive {
908
908
Some ( derive) => {
909
909
acc. push (
@@ -918,7 +918,7 @@ fn emit_def_diagnostic_(
918
918
}
919
919
DefDiagnosticKind :: MalformedDerive { ast, id } => {
920
920
let node = ast. to_node ( db. upcast ( ) ) ;
921
- let derive = node. attrs ( ) . nth ( * id as usize ) ;
921
+ let derive = node. attrs ( ) . nth ( * id) ;
922
922
match derive {
923
923
Some ( derive) => {
924
924
acc. push (
You can’t perform that action at this time.
0 commit comments