Don't mess with cursor position when adding hashes

This commit is contained in:
Aleksey Kladov 2020-07-09 19:21:41 +02:00
parent 1fb92d791e
commit 68706b59c9
4 changed files with 34 additions and 16 deletions

View file

@ -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(