style: fix clippy collapsible_if warnings in nvim-core
This commit is contained in:
1 parent
148025c5a7
commit
b2f15de58c
8 files changed
+105
-89
No files matched your search
@@ -68,7 +68,9 @@ pub async fn gate_verify_handler(
|
||||
Err(AppError::Forbidden(msg))
|
||||
}
|
||||
}
|
||||
None => Err(AppError::NotFound("Action not yet authorized (no gate record found).".to_string())),
|
||||
None => Err(AppError::NotFound(
|
||||
"Action not yet authorized (no gate record found).".to_string(),
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +100,7 @@ pub async fn gate_set_handler(
|
||||
gates.retain(|g| !(g.action == record.action && g.target == record.target));
|
||||
gates.push(record);
|
||||
});
|
||||
|
||||
|
||||
Ok((axum::http::StatusCode::OK, "Gate state updated."))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user