Rust library to generate static websites

fix: lint

+8 -8
+5 -5
crates/maudit/src/build/state.rs
··· 108 108 let canonical_changed = changed_file.canonicalize().ok(); 109 109 110 110 // Try exact match with canonical path 111 - if let Some(canonical) = &canonical_changed { 112 - if let Some(routes) = self.asset_to_routes.get(canonical) { 113 - affected_routes.extend(routes.iter().cloned()); 114 - continue; // Found exact match, no need for directory check 115 - } 111 + if let Some(canonical) = &canonical_changed 112 + && let Some(routes) = self.asset_to_routes.get(canonical) 113 + { 114 + affected_routes.extend(routes.iter().cloned()); 115 + continue; // Found exact match, no need for directory check 116 116 } 117 117 118 118 // Fallback: try exact match with original path (shouldn't normally match)
+1 -1
e2e/fixtures/incremental-build/src/pages/about.rs
··· 1 - use maud::{html, Markup}; 1 + use maud::html; 2 2 use maudit::route::prelude::*; 3 3 use std::time::{SystemTime, UNIX_EPOCH}; 4 4
+1 -1
e2e/fixtures/incremental-build/src/pages/blog.rs
··· 1 - use maud::{html, Markup}; 1 + use maud::html; 2 2 use maudit::route::prelude::*; 3 3 use std::time::{SystemTime, UNIX_EPOCH}; 4 4
+1 -1
e2e/fixtures/incremental-build/src/pages/index.rs
··· 1 - use maud::{html, Markup}; 1 + use maud::html; 2 2 use maudit::route::prelude::*; 3 3 use std::time::{SystemTime, UNIX_EPOCH}; 4 4