From 9ac50ad094aa9e10dee33263f5d912dd00779042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Tue, 1 Apr 2025 03:13:02 +0200 Subject: [PATCH] Use `cloned` in `styling` test --- examples/styling/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 322b2b94..b0adc8e8 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -180,14 +180,14 @@ mod tests { fn it_showcases_every_theme() -> Result<(), Error> { Theme::ALL .par_iter() + .cloned() .map(|theme| { let mut styling = Styling::default(); - styling.update(Message::ThemeChanged(theme.clone())); + styling.update(Message::ThemeChanged(theme)); let theme = styling.theme(); let mut ui = simulator(styling.view()); - let snapshot = ui.snapshot(&theme)?; assert!(