aboutsummaryrefslogtreecommitdiff
path: root/crates/assists
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-11-06 17:54:01 +0000
committerAleksey Kladov <[email protected]>2020-11-06 17:54:01 +0000
commit735aaa7b39b4d3d789ad75c167bbf322a65ca257 (patch)
tree865daba83547042e2aed9cc412382fd646a5a158 /crates/assists
parent6bcc33e5b7e32a79865be4893fcc33caf8d831d6 (diff)
Move int parsing to IntNumber token
Diffstat (limited to 'crates/assists')
-rw-r--r--crates/assists/src/handlers/convert_integer_literal.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/assists/src/handlers/convert_integer_literal.rs b/crates/assists/src/handlers/convert_integer_literal.rs
index c8af80701..6d477c045 100644
--- a/crates/assists/src/handlers/convert_integer_literal.rs
+++ b/crates/assists/src/handlers/convert_integer_literal.rs
@@ -15,7 +15,7 @@ use crate::{AssistContext, AssistId, AssistKind, Assists, GroupLabel};
15// ``` 15// ```
16pub(crate) fn convert_integer_literal(acc: &mut Assists, ctx: &AssistContext) -> Option<()> { 16pub(crate) fn convert_integer_literal(acc: &mut Assists, ctx: &AssistContext) -> Option<()> {
17 let literal = ctx.find_node_at_offset::<ast::Literal>()?; 17 let literal = ctx.find_node_at_offset::<ast::Literal>()?;
18 let (radix, value) = literal.int_value()?; 18 let (radix, value) = literal.as_int_number()?.value()?;
19 19
20 let range = literal.syntax().text_range(); 20 let range = literal.syntax().text_range();
21 let group_id = GroupLabel("Convert integer base".into()); 21 let group_id = GroupLabel("Convert integer base".into());