File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
crates/rust-analyzer/src/handlers Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,6 @@ field_reassign_with_default = "allow"
176
176
forget_non_drop = " allow"
177
177
format_collect = " allow"
178
178
filter_map_bool_then = " allow"
179
- from_str_radix_10 = " allow"
180
179
if_same_then_else = " allow"
181
180
large_enum_variant = " allow"
182
181
match_like_matches_macro = " allow"
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub(crate) fn handle_work_done_progress_cancel(
36
36
) -> anyhow:: Result < ( ) > {
37
37
if let lsp_types:: NumberOrString :: String ( s) = & params. token {
38
38
if let Some ( id) = s. strip_prefix ( "rust-analyzer/flycheck/" ) {
39
- if let Ok ( id) = u32 :: from_str_radix ( id , 10 ) {
39
+ if let Ok ( id) = id . parse :: < u32 > ( ) {
40
40
if let Some ( flycheck) = state. flycheck . get ( id as usize ) {
41
41
flycheck. cancel ( ) ;
42
42
}
You can’t perform that action at this time.
0 commit comments