windows: clippy's suggestions in the service and client (collapsible ifs, next_back)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 02:08:25 +03:00
1 parent 7565e62571
commit 757bebbb1d
6 files changed
+20 -21

No files matched your search

+4 -7
View File
@@ -237,13 +237,10 @@ pub async fn handle(req: Request, peer: &Peer, shared: &Shared) -> Response {
Request::ConfigSet { mut config, base } => {
let mut s = shared.lock().await;
if let Some(base) = base {
if base != s.store.revision {
return Response::err(format!(
"the configuration changed since revision {base} (now {}): read it again",
s.store.revision
));
}
if let Some(base) = base
&& base != s.store.revision
{
return Response::err(format!("the configuration changed since revision {base} (now {}): read it again", s.store.revision));
}
unredact(&mut config, s.cfg());
let new: Config = match serde_json::from_value(config) {