from_str_radix_10
This commit is contained in:
parent
8982ff3bba
commit
84494d1c8e
@ -176,7 +176,6 @@ field_reassign_with_default = "allow"
|
|||||||
forget_non_drop = "allow"
|
forget_non_drop = "allow"
|
||||||
format_collect = "allow"
|
format_collect = "allow"
|
||||||
filter_map_bool_then = "allow"
|
filter_map_bool_then = "allow"
|
||||||
from_str_radix_10 = "allow"
|
|
||||||
if_same_then_else = "allow"
|
if_same_then_else = "allow"
|
||||||
large_enum_variant = "allow"
|
large_enum_variant = "allow"
|
||||||
match_like_matches_macro = "allow"
|
match_like_matches_macro = "allow"
|
||||||
|
@ -36,7 +36,7 @@ pub(crate) fn handle_work_done_progress_cancel(
|
|||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
if let lsp_types::NumberOrString::String(s) = ¶ms.token {
|
if let lsp_types::NumberOrString::String(s) = ¶ms.token {
|
||||||
if let Some(id) = s.strip_prefix("rust-analyzer/flycheck/") {
|
if let Some(id) = s.strip_prefix("rust-analyzer/flycheck/") {
|
||||||
if let Ok(id) = u32::from_str_radix(id, 10) {
|
if let Ok(id) = id.parse::<u32>() {
|
||||||
if let Some(flycheck) = state.flycheck.get(id as usize) {
|
if let Some(flycheck) = state.flycheck.get(id as usize) {
|
||||||
flycheck.cancel();
|
flycheck.cancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user