Skip to content

Commit

Permalink
Fix latest clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Nov 19, 2024
1 parent 697e755 commit 477da32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aws-lc-fips-sys/builder/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ fn setup_include_paths(out_dir: &Path, manifest_dir: &Path) -> PathBuf {
// iterate over all the include paths and copy them into the final output
for path in include_paths {
for child in std::fs::read_dir(path).into_iter().flatten().flatten() {
if child.file_type().map_or(false, |t| t.is_file()) {
if child.file_type().is_ok_and(|t| t.is_file()) {
let _ = std::fs::copy(
child.path(),
include_dir.join(child.path().file_name().unwrap()),
Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/cc_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ impl CcBuilder {
let source_path = self.manifest_dir.join("aws-lc").join(source);
let is_asm = std::path::Path::new(source)
.extension()
.map_or(false, |ext| ext.eq("S"));
.is_some_and(|ext| ext.eq("S"));
if is_asm && target_vendor() == "apple" && target_arch() == "aarch64" {
let mut cc_preprocessor = self.create_builder();
cc_preprocessor.file(source_path);
Expand Down
2 changes: 1 addition & 1 deletion aws-lc-sys/builder/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ fn setup_include_paths(out_dir: &Path, manifest_dir: &Path) -> PathBuf {
// iterate over all the include paths and copy them into the final output
for path in include_paths {
for child in std::fs::read_dir(path).into_iter().flatten().flatten() {
if child.file_type().map_or(false, |t| t.is_file()) {
if child.file_type().is_ok_and(|t| t.is_file()) {
let _ = std::fs::copy(
child.path(),
include_dir.join(child.path().file_name().unwrap()),
Expand Down

0 comments on commit 477da32

Please sign in to comment.