mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Remove ast::Literal::token
This commit is contained in:
parent
7dfd1cb572
commit
2d5d16f18c
4 changed files with 19 additions and 11 deletions
|
@ -230,7 +230,7 @@ pub(crate) fn determine_location(
|
|||
let receiver = find_in_original_file(it.expr(), original_file);
|
||||
let receiver_is_ambiguous_float_literal = if let Some(ast::Expr::Literal(l)) = &receiver {
|
||||
match l.kind() {
|
||||
ast::LiteralKind::FloatNumber { .. } => l.token().text().ends_with('.'),
|
||||
ast::LiteralKind::FloatNumber { .. } => l.to_string().ends_with('.'),
|
||||
_ => false,
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue