Skip to content
Myr

Fix extension comparison logic

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Matthias Reitinger · committed by David Peter · parent b0fb774 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/main.rs+1 added-1 removed
307 unmodified lines
308309 // Filter out unwanted extensions.310 if let Some(ref filter_ext) = config.extension {311 let entry_ext = entry.path().extension().map(|e| e.to_string_lossy().to_lowercase());312 if entry_ext.map_or(false, |ext| ext != *filter_ext) {312 if entry_ext.map_or(true, |ext| ext != *filter_ext) {313 return ignore::WalkState::Continue;314 }315 }316
209 unmodified lines