mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
remove needless borrows
This commit is contained in:
parent
77051679d7
commit
ed128872eb
53 changed files with 87 additions and 87 deletions
|
@ -163,7 +163,7 @@ fn _format(
|
|||
) -> Option<String> {
|
||||
use ide_db::base_db::{FileLoader, SourceDatabase};
|
||||
// hack until we get hygiene working (same character amount to preserve formatting as much as possible)
|
||||
const DOLLAR_CRATE_REPLACE: &str = &"__r_a_";
|
||||
const DOLLAR_CRATE_REPLACE: &str = "__r_a_";
|
||||
let expansion = expansion.replace("$crate", DOLLAR_CRATE_REPLACE);
|
||||
let (prefix, suffix) = match kind {
|
||||
SyntaxKind::MACRO_PAT => ("fn __(", ": u32);"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue