File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ impl Completer for NumbatCompleter {
77
77
// does it look like we're tab-completing a timezone (via the conversion operator)?
78
78
let complete_tz = line
79
79
. find ( "->" )
80
- . or_else ( || line. find ( "→" ) )
81
- . or_else ( || line. find ( "➞" ) )
80
+ . or_else ( || line. find ( '→' ) )
81
+ . or_else ( || line. find ( '➞' ) )
82
82
. or_else ( || line. find ( " to " ) )
83
83
. and_then ( |convert_pos| {
84
84
if let Some ( quote_pos) = line. rfind ( '"' ) {
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ impl ModuleImporter for BuiltinModuleImporter {
121
121
. map ( |path| {
122
122
ModulePath (
123
123
path. trim_end_matches ( ".nbt" )
124
- . split ( "/" )
124
+ . split ( '/' )
125
125
. map ( |s| s. to_string ( ) )
126
126
. collect ( ) ,
127
127
)
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ impl Number {
69
69
formatted_number. to_string ( )
70
70
}
71
71
} else if formatted_number. contains ( 'e' ) && !formatted_number. contains ( "e-" ) {
72
- formatted_number. replace ( "e" , "e+" )
72
+ formatted_number. replace ( 'e' , "e+" )
73
73
} else {
74
74
formatted_number
75
75
}
You can’t perform that action at this time.
0 commit comments