don't clone copy types
This commit is contained in:
parent
fd95627134
commit
e8a33847fd
2 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ impl Foldable for UnevaluatedConst {
|
|||
|
||||
impl Foldable for ConstDef {
|
||||
fn super_fold<V: Folder>(&self, _folder: &mut V) -> ControlFlow<V::Break, Self> {
|
||||
ControlFlow::Continue(self.clone())
|
||||
ControlFlow::Continue(*self)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ impl<T: Foldable> Foldable for Option<T> {
|
|||
|
||||
impl Foldable for Promoted {
|
||||
fn super_fold<V: Folder>(&self, _folder: &mut V) -> ControlFlow<V::Break, Self> {
|
||||
ControlFlow::Continue(self.clone())
|
||||
ControlFlow::Continue(*self)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue