aboutsummaryrefslogtreecommitdiff
path: root/src/ipc
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-07-13 12:49:00 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-07-13 12:54:03 +0300
commitdfb368318755a902bad97db69a54c25cd6140b72 (patch)
treea4eb89124361987290af09d5414732f5b093383d /src/ipc
parentce9ba00d54104f250f0074a54f14d1a5e4ff427f (diff)
downloadniri-dfb368318755a902bad97db69a54c25cd6140b72.tar.gz
niri-dfb368318755a902bad97db69a54c25cd6140b72.tar.bz2
niri-dfb368318755a902bad97db69a54c25cd6140b72.zip
Fix new Clippy warnings
Diffstat (limited to 'src/ipc')
-rw-r--r--src/ipc/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/client.rs b/src/ipc/client.rs
index aead5ebe..5ddefd3b 100644
--- a/src/ipc/client.rs
+++ b/src/ipc/client.rs
@@ -297,7 +297,7 @@ pub fn handle_msg(msg: Msg, json: bool) -> anyhow::Result<()> {
let [r, g, b] = color.rgb.map(|v| (v.clamp(0., 1.) * 255.).round() as u8);
println!("Picked color: rgb({r}, {g}, {b})",);
- println!("Hex: #{:02x}{:02x}{:02x}", r, g, b);
+ println!("Hex: #{r:02x}{g:02x}{b:02x}");
} else {
println!("No color was picked.");
}