Merge pull request #1106 from RamType0/RemoveUnnecessaryStringAllocationInExample

Remove unnecessary String allocation
This commit is contained in:
Héctor Ramón 2021-11-10 23:59:35 +07:00 committed by GitHub
commit f084ed8df1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 12 deletions

View file

@ -60,7 +60,7 @@ impl Sandbox for Styling {
column.push(
Radio::new(
*theme,
&format!("{:?}", theme),
format!("{:?}", theme),
Some(self.theme),
Message::ThemeChanged,
)