From 0245f289b201c8b352dcffcd35e0f0d283085ee2 Mon Sep 17 00:00:00 2001 From: "Ram.Type-0" Date: Mon, 1 Nov 2021 23:41:16 +0900 Subject: Remove unnecessary String allocation Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into --- examples/styling/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/styling') diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 81d33ad3..bf9cb403 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -60,7 +60,7 @@ impl Sandbox for Styling { column.push( Radio::new( *theme, - &format!("{:?}", theme), + format!("{:?}", theme), Some(self.theme), Message::ThemeChanged, ) -- cgit