🚨 Fix clippy warnings

This commit is contained in:
2023-12-26 21:04:57 +01:00
parent ddeb94e887
commit 7498638ac1
12 changed files with 311 additions and 319 deletions

View File

@@ -64,7 +64,7 @@ pub fn ContactsSection<'a>(
let show = use_state(cx, || false);
let classes = vec![
let classes = [
ClassName::SECTION,
if **show { ClassName::ACTIVE } else { "" },
]
@@ -86,7 +86,7 @@ pub fn ContactsSection<'a>(
let formatted = format!(
"{room_name} - {}",
if is_invited {
format!("Invited - ")
"Invited - ".to_string()
} else {
"".to_string()
}