Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
hwittenborn committed Dec 28, 2023
1 parent 6bed3e6 commit 75a0093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions impl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ fn embedded(
let includes: Vec<&str> = includes.iter().map(AsRef::as_ref).collect();
let excludes: Vec<&str> = excludes.iter().map(AsRef::as_ref).collect();
for rust_embed_utils::FileEntry { rel_path, full_canonical_path } in rust_embed_utils::get_files(absolute_folder_path.clone(), &includes, &excludes) {
match_values.insert(
rel_path.clone(),
embed_file(relative_folder_path.clone(), ident, &rel_path, &full_canonical_path)?,
);
match_values.insert(rel_path.clone(), embed_file(relative_folder_path, ident, &rel_path, &full_canonical_path)?);

list_values.push(if let Some(prefix) = prefix {
format!("{}{}", prefix, rel_path)
Expand Down
2 changes: 1 addition & 1 deletion utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub fn read_file_from_fs(file_path: &Path) -> io::Result<EmbeddedFile> {
let hash: [u8; 32] = hasher.finalize().into();

let source_date_epoch = match std::env::var("SOURCE_DATE_EPOCH") {
Ok(value) => value.parse::<u64>().map_or(None, |v| Some(v)),
Ok(value) => value.parse::<u64>().ok(),
Err(_) => None,
};

Expand Down

0 comments on commit 75a0093

Please sign in to comment.