mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-22 20:35:31 +00:00
Remove unnecessary predefined symbol clones
Now that they're const it's no longer needed. Nothing manual was performed: only a regexp search of `sym::([\w][\w\d]*)\.clone\(\)` and replace by `sym::$1`.
This commit is contained in:
parent
9477e46bec
commit
0f325c7ff8
55 changed files with 312 additions and 361 deletions
|
|
@ -249,7 +249,7 @@ impl Analysis {
|
|||
TryFrom::try_from(&*std::env::current_dir().unwrap().as_path().to_string_lossy())
|
||||
.unwrap(),
|
||||
);
|
||||
cfg_options.insert_atom(sym::test.clone());
|
||||
cfg_options.insert_atom(sym::test);
|
||||
crate_graph.add_crate_root(
|
||||
file_id,
|
||||
Edition::CURRENT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue