Skip to content

Commit 84494d1

Browse files
committed
from_str_radix_10
1 parent 8982ff3 commit 84494d1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ field_reassign_with_default = "allow"
176176
forget_non_drop = "allow"
177177
format_collect = "allow"
178178
filter_map_bool_then = "allow"
179-
from_str_radix_10 = "allow"
180179
if_same_then_else = "allow"
181180
large_enum_variant = "allow"
182181
match_like_matches_macro = "allow"

crates/rust-analyzer/src/handlers/notification.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) fn handle_work_done_progress_cancel(
3636
) -> anyhow::Result<()> {
3737
if let lsp_types::NumberOrString::String(s) = &params.token {
3838
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>() {
4040
if let Some(flycheck) = state.flycheck.get(id as usize) {
4141
flycheck.cancel();
4242
}

0 commit comments

Comments
 (0)