mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-12-14 16:31:02 +00:00
avoid pushing str instead of chars
This commit is contained in:
parent
f18aaa4945
commit
9dd03a900b
1 changed files with 2 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ pub fn get_desktop_info() -> String {
|
||||||
let mut result =
|
let mut result =
|
||||||
String::with_capacity(desktop_str.len() + backend_str.len() + 3);
|
String::with_capacity(desktop_str.len() + backend_str.len() + 3);
|
||||||
result.push_str(desktop_str);
|
result.push_str(desktop_str);
|
||||||
result.push_str(" (");
|
result.push(' ');
|
||||||
|
result.push('(');
|
||||||
|
|
||||||
// Capitalize first character of backend
|
// Capitalize first character of backend
|
||||||
if let Some(first_char) = backend_str.chars().next() {
|
if let Some(first_char) = backend_str.chars().next() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue