mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Fix clippy::redundant_clone
This commit is contained in:
parent
21f70a7293
commit
d0e9cd2bc6
4 changed files with 5 additions and 6 deletions
|
@ -169,7 +169,7 @@ impl ModuleSource {
|
|||
(None, Some(item_id)) => {
|
||||
let module = item_id.to_node(db);
|
||||
assert!(module.item_list().is_some(), "expected inline module");
|
||||
ModuleSource::Module(module.to_owned())
|
||||
ModuleSource::Module(module)
|
||||
}
|
||||
(None, None) => panic!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue