Shared: Fix clippy lint

This commit is contained in:
Harry Maclean
2023-08-23 16:24:57 +01:00
parent 3680613f2d
commit b76842ad3d

View File

@@ -122,7 +122,7 @@ impl Extractor {
tracing::error!(?path, "No file name found, skipping file.");
}
Some(filename) => {
let matches = globset.matches(&filename);
let matches = globset.matches(filename);
if matches.is_empty() {
tracing::error!(?path, "No matching language found, skipping file.");
} else {