mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -04:00
Use explicit Arc::clone to clarify when clones are cheap (#7784)
This commit is contained in:
@@ -75,7 +75,7 @@ impl MyApp {
|
||||
|
||||
// Clone locals so we can move them into the paint callback:
|
||||
let angle = self.angle;
|
||||
let rotating_triangle = self.rotating_triangle.clone();
|
||||
let rotating_triangle = Arc::clone(&self.rotating_triangle);
|
||||
|
||||
let callback = egui::PaintCallback {
|
||||
rect,
|
||||
|
||||
Reference in New Issue
Block a user