Skip to content

Commit 9dd03a9

Browse files
committed
avoid pushing str instead of chars
1 parent f18aaa4 commit 9dd03a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/desktop.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ pub fn get_desktop_info() -> String {
3333
let mut result =
3434
String::with_capacity(desktop_str.len() + backend_str.len() + 3);
3535
result.push_str(desktop_str);
36-
result.push_str(" (");
36+
result.push(' ');
37+
result.push('(');
3738

3839
// Capitalize first character of backend
3940
if let Some(first_char) = backend_str.chars().next() {

0 commit comments

Comments
 (0)