diff --git a/kernel/src/scan/state.rs b/kernel/src/scan/state.rs index 04e05aaeb..f785f5dca 100644 --- a/kernel/src/scan/state.rs +++ b/kernel/src/scan/state.rs @@ -133,9 +133,9 @@ impl DataVisitor for ScanFileVisitor<'_, T> { // Since path column is required, use it to detect presence of an Add action if let Some(path) = getters[0].get_opt(row_index, "scanFile.path")? { let size = getters[1].get(row_index, "scanFile.size")?; - let stats_json: Option = getters[3].get_opt(row_index, "scanFile.stats")?; + let stats: Option = getters[3].get_opt(row_index, "scanFile.stats")?; let stats: Option = - stats_json.and_then(|json| match serde_json::from_str(json.as_str()) { + stats.and_then(|json| match serde_json::from_str(json.as_str()) { Ok(stats) => Some(stats), Err(e) => { warn!("Invalid stats string in Add file {json}: {}", e);