1
Fork 0

don't clone copy types

This commit is contained in:
Matthias Krüger 2023-09-28 00:20:32 +02:00
parent fd95627134
commit e8a33847fd
2 changed files with 3 additions and 3 deletions

View file

@ -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)
}
}