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

+1 -2
View File
@@ -244,8 +244,7 @@ impl McpTool for GenerateStandupReportHandler {
async fn execute(&self, args: Value, state: Arc<MemoryState>) -> Result<String, String> {
let req: GenerateStandupReportTool =
serde_json::from_value(args).map_err(|e| e.to_string())?;
let cutoff =
crate::handlers::utils::now_secs().saturating_sub(req.hours_lookback * 3600);
let cutoff = crate::handlers::utils::now_secs().saturating_sub(req.hours_lookback * 3600);
let report_str = state.tasks.read_with(|items| {
state.ledger.read_with(|changes| {