mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Remove redundant clones
This commit is contained in:
parent
ae7bee70a1
commit
79d103d5b4
7 changed files with 8 additions and 17 deletions
|
@ -161,7 +161,7 @@ impl TestDB {
|
|||
let node = src.map(|ptr| ptr.to_node(&root));
|
||||
let frange = node.as_ref().original_file_range(db);
|
||||
|
||||
let message = d.message().to_owned();
|
||||
let message = d.message();
|
||||
actual.entry(frange.file_id).or_default().push((frange.range, message));
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue