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"
181181self_named_constructors = " allow"
182182too_many_arguments = " allow"
183183type_complexity = " allow"
184- unnecessary_cast = " allow"
185184unnecessary_filter_map = " allow"
186185unnecessary_lazy_evaluations = " allow"
187186unnecessary_mut_passed = " allow"
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ impl SearchMode {
297297 SearchMode :: Exact => candidate. eq_ignore_ascii_case ( query) ,
298298 SearchMode :: Prefix => {
299299 query. len ( ) <= candidate. len ( ) && {
300- let prefix = & candidate[ ..query. len ( ) as usize ] ;
300+ let prefix = & candidate[ ..query. len ( ) ] ;
301301 if case_sensitive {
302302 prefix == query
303303 } else {
@@ -446,7 +446,7 @@ fn search_maps(
446446 let end = ( value & 0xFFFF_FFFF ) as usize ;
447447 let start = ( value >> 32 ) as usize ;
448448 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] ;
450450
451451 let iter = importables
452452 . iter ( )
Original file line number Diff line number Diff line change @@ -903,7 +903,7 @@ fn emit_def_diagnostic_(
903903 }
904904 DefDiagnosticKind :: InvalidDeriveTarget { ast, id } => {
905905 let node = ast. to_node ( db. upcast ( ) ) ;
906- let derive = node. attrs ( ) . nth ( * id as usize ) ;
906+ let derive = node. attrs ( ) . nth ( * id) ;
907907 match derive {
908908 Some ( derive) => {
909909 acc. push (
@@ -918,7 +918,7 @@ fn emit_def_diagnostic_(
918918 }
919919 DefDiagnosticKind :: MalformedDerive { ast, id } => {
920920 let node = ast. to_node ( db. upcast ( ) ) ;
921- let derive = node. attrs ( ) . nth ( * id as usize ) ;
921+ let derive = node. attrs ( ) . nth ( * id) ;
922922 match derive {
923923 Some ( derive) => {
924924 acc. push (
You can’t perform that action at this time.
0 commit comments