mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Don't mess with cursor position when adding hashes
This commit is contained in:
parent
1fb92d791e
commit
68706b59c9
4 changed files with 34 additions and 16 deletions
|
@ -272,7 +272,7 @@ fn format_args_expand(
|
|||
fn unquote_str(lit: &tt::Literal) -> Option<String> {
|
||||
let lit = ast::make::tokens::literal(&lit.to_string());
|
||||
let token = ast::String::cast(lit)?;
|
||||
token.value()
|
||||
token.value().map(|it| it.into_owned())
|
||||
}
|
||||
|
||||
fn concat_expand(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue