Use variables directly inside format strings

Most systems should have an up to date Rust compiler by now, so we should be
fine.
This commit is contained in:
Henrik Friedrichsen
2023-02-06 20:06:25 +01:00
parent 2fe3b056bf
commit 8222f1b2e4
17 changed files with 34 additions and 40 deletions

View File

@@ -566,7 +566,7 @@ fn run_dbus_server(
let captures = regex.captures(s).unwrap();
let uri_type = &captures[2];
let id = &captures[3];
format!("spotify:{}:{}", uri_type, id)
format!("spotify:{uri_type}:{id}")
}else {
s.to_string()
};