🚨 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

@@ -19,7 +19,7 @@ pub fn Login(cx: Scope) -> Element {
let invalid_login = use_state(cx, || false);
let login = use_ref(cx, || Login::new());
let login = use_ref(cx, Login::new);
let password_class = if **invalid_login {
ClassName::INVALID_INPUT
@@ -127,11 +127,10 @@ struct Login {
impl Login {
fn new() -> Self {
let login = Self {
Self {
homeserver_url: None,
email: None,
password: None,
};
login
}
}
}