diff options
author | 2021-11-01 23:41:16 +0900 | |
---|---|---|
committer | 2021-11-02 00:05:25 +0900 | |
commit | 0245f289b201c8b352dcffcd35e0f0d283085ee2 (patch) | |
tree | e0088aabd9a4a1a8a099ed3ae05517c52dfe946f /examples/scrollable | |
parent | 8a2a7f7e2144542b47c1d259f296ad7dcc5f3cf9 (diff) | |
download | iced-0245f289b201c8b352dcffcd35e0f0d283085ee2.tar.gz iced-0245f289b201c8b352dcffcd35e0f0d283085ee2.tar.bz2 iced-0245f289b201c8b352dcffcd35e0f0d283085ee2.zip |
Remove unnecessary String allocation
Remove unnecessary String allocation by passing &format! or &x.to_string as impl Into<String>
Diffstat (limited to 'examples/scrollable')
-rw-r--r-- | examples/scrollable/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index 3416b83d..8e027504 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -72,7 +72,7 @@ impl Sandbox for ScrollableDemo { column.push( Radio::new( *option, - &format!("{:?}", option), + format!("{:?}", option), Some(*theme), Message::ThemeChanged, ) |