Skip to content

Commit 97e8ce3

Browse files
author
grtcdr
committed
Simplify string interpolation by using format macro
1 parent 32de461 commit 97e8ce3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/winman.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ pub fn is_running_wayfire() -> bool {
3535
pub fn is_running_qtile() -> bool {
3636
if let Some(cache) = dirs::cache_dir() {
3737
if let Ok(display) = std::env::var("WAYLAND_DISPLAY") {
38-
let socket = cache
39-
.join("qtile")
40-
.join("qtilesocket.".to_owned() + &display);
38+
let socket = cache.join("qtile").join(format!("qtilesocket.{display}"));
4139

4240
if socket.exists() {
4341
return true;

0 commit comments

Comments
 (0)