Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Sep 20, 2024
1 parent d74979e commit 7146f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ rustflags = [
# do not change or add/remove here, but one can add exceptions after this section
# for more info see: <https://github.com/EmbarkStudios/rust-ecosystem/issues/59>
"-Dunsafe_code",
"-Wunexpected_cfgs",
"-Wclippy::all",
"-Wclippy::await_holding_lock",
"-Wclippy::char_lit_as_u8",
Expand Down Expand Up @@ -44,7 +45,6 @@ rustflags = [
"-Wclippy::match_wild_err_arm",
"-Wclippy::match_wildcard_for_single_variants",
"-Wclippy::mem_forget",
"-Wclippy::mismatched_target_os",
"-Wclippy::missing_enforced_import_renames",
"-Wclippy::mut_mut",
"-Wclippy::mutex_integer",
Expand Down
2 changes: 1 addition & 1 deletion src/licenses/gather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ fn get_file_source(root: &Path, path: PathBuf) -> PackFile {
break;
}

let keep = std::cmp::max(s.trim_end_matches(|p| p == '\r' || p == '\n').len(), min);
let keep = std::cmp::max(s.trim_end_matches(['\r', '\n']).len(), min);
s.truncate(keep);
s.push('\n');

Expand Down

0 comments on commit 7146f16

Please sign in to comment.