🚨 Fix clippy warnings
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user