mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Use explicit Arc::clone to clarify when clones are cheap (#7784)
This commit is contained in:
@@ -92,7 +92,7 @@ impl eframe::App for MyApp {
|
||||
.unwrap();
|
||||
self.save_to_file = false;
|
||||
}
|
||||
self.screenshot = Some(image.clone());
|
||||
self.screenshot = Some(Arc::clone(image));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user