summaryrefslogtreecommitdiffstats
path: root/examples/system_information
diff options
context:
space:
mode:
authorLibravatar 13r0ck <brock@szu.email>2023-01-27 13:25:04 -0700
committerLibravatar 13r0ck <brock@szu.email>2023-01-27 14:02:48 -0700
commit42b1bfe66d2407901c1ae640f80ce9e0d3c64b60 (patch)
tree2057c57df0c36096d1c3cd6334bc16e767f8169e /examples/system_information
parente6092e81a42efe0bbaaad2e7ce475c25a379e672 (diff)
downloadiced-42b1bfe66d2407901c1ae640f80ce9e0d3c64b60.tar.gz
iced-42b1bfe66d2407901c1ae640f80ce9e0d3c64b60.tar.bz2
iced-42b1bfe66d2407901c1ae640f80ce9e0d3c64b60.zip
Fix: Clippy lint 'uninlined_format_args'
Diffstat (limited to 'examples/system_information')
-rw-r--r--examples/system_information/src/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs
index 175b4387..633b6e2b 100644
--- a/examples/system_information/src/main.rs
+++ b/examples/system_information/src/main.rs
@@ -114,13 +114,12 @@ impl Application for Example {
{
let memory_readable = ByteSize::kb(memory_used).to_string();
- format!("{} kb ({})", memory_used, memory_readable)
+ format!("{memory_used} kb ({memory_readable})")
} else {
String::from("None")
};
- let memory_used =
- text(format!("Memory (used): {}", memory_text));
+ let memory_used = text(format!("Memory (used): {memory_text}"));
let graphics_adapter = text(format!(
"Graphics adapter: {}",