mirror of
https://github.com/NotAShelf/microfetch.git
synced 2025-12-14 08:21:01 +00:00
get rid of useless format in desktop module
This commit is contained in:
parent
9197065529
commit
e812605d45
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{ffi::CStr, fmt::Write};
|
||||
use std::ffi::CStr;
|
||||
|
||||
#[must_use]
|
||||
#[cfg_attr(feature = "hotpath", hotpath::measure)]
|
||||
|
|
@ -33,7 +33,7 @@ pub fn get_desktop_info() -> String {
|
|||
|
||||
// Capitalize first character of backend
|
||||
if let Some(first_char) = backend_str.chars().next() {
|
||||
let _ = write!(result, "{}", first_char.to_ascii_uppercase());
|
||||
result.push(first_char.to_ascii_uppercase());
|
||||
result.push_str(&backend_str[first_char.len_utf8()..]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue