style: fix clippy collapsible_if warnings in nvim-core

This commit is contained in:
Riz Ashraf committed 2026-09-22 06:07:50 +01:00
1 parent 148025c5a7
commit b2f15de58c
8 files changed
+105 -89

No files matched your search

+4 -2
View File
@@ -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."))
}