Skip to content

Commit 06abc1b

Browse files
committed
Fix clippy warnings
1 parent d893d07 commit 06abc1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/tools.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ pub(crate) fn guess_file<S: ::std::hash::BuildHasher>(
283283
all_files: &HashMap<String, Vec<PathBuf>, S>,
284284
) -> Vec<PathBuf> {
285285
//let rpath = include_path.clone();
286-
let include_path = if include_path.starts_with("mozilla/") {
287-
&include_path[8..]
286+
let include_path = if let Some(end) = include_path.strip_prefix("mozilla/") {
287+
end
288288
} else {
289289
include_path
290290
};

0 commit comments

Comments
 (0)