diff options
| author | 2025-11-05 14:41:31 +0100 | |
|---|---|---|
| committer | 2025-11-05 14:41:31 +0100 | |
| commit | a76b9e8819538c6f88f3ea333c348a80280654fd (patch) | |
| tree | 20ca024d2d61d44d9f5918a67ae034458e9f10c1 /src | |
| parent | 8bc035efd9279c0a9090313ecab5cfbcb3a9980a (diff) | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 378dca7..0d099cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,9 @@ fn search_recursive(stats: &mut CodeStats, excludes: &Vec<String>, root: &std::p } fn analyze_file(stats: &mut CodeStats, path: &std::path::PathBuf) { - let content = std::fs::read_to_string(path).unwrap(); + let Ok(content) = std::fs::read_to_string(path) else { + return + }; let lines = content.lines().count(); if lines > stats.most_lines.value { |
