mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
remove redundant clones
This commit is contained in:
parent
f595e60b6d
commit
476e10e961
23 changed files with 34 additions and 34 deletions
|
@ -159,7 +159,7 @@ impl<'a> PathTransform<'a> {
|
|||
.for_each(|(k, v)| match (k.split(db), v) {
|
||||
(Either::Right(k), Some(TypeOrConst::Either(v))) => {
|
||||
if let Some(ty) = v.ty() {
|
||||
type_substs.insert(k, ty.clone());
|
||||
type_substs.insert(k, ty);
|
||||
}
|
||||
}
|
||||
(Either::Right(k), None) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue