Skip to content

Commit

Permalink
Fix clippy warnings (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luni-4 authored Nov 20, 2020
1 parent d893d07 commit 200e7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ pub(crate) fn guess_file<S: ::std::hash::BuildHasher>(
all_files: &HashMap<String, Vec<PathBuf>, S>,
) -> Vec<PathBuf> {
//let rpath = include_path.clone();
let include_path = if include_path.starts_with("mozilla/") {
&include_path[8..]
let include_path = if let Some(end) = include_path.strip_prefix("mozilla/") {
end
} else {
include_path
};
Expand Down

0 comments on commit 200e7d8

Please sign in to comment.