Skip to content

Commit

Permalink
Fixing with newest clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Aug 29, 2024
1 parent b924671 commit 83f4407
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ecosystem/rust/cargo/src/build_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl BuildSystem for CargoBuilder {
for entry in directory {
if let Some(file_name) = entry.file_name().to_str() {
if entry.file_type()?.is_file() && file_name.contains(&library.identifier.name) {
std::fs::copy(&entry.path(), libraries_dir.join(file_name))?;
std::fs::copy(entry.path(), libraries_dir.join(file_name))?;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/rust/cargo/src/exporter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl FileGenerator for CargoGenerator {
}

fn generate_files(&self, library: &Library, file_set: &mut FileSet) -> Result<()> {
let file = file_set.entry(&PathBuf::from_str("Cargo.toml").unwrap());
let file = file_set.entry(PathBuf::from_str("Cargo.toml").unwrap());
let version = "0.1.0";
let name = &library.identifier;
// FIXME: This is a placeholder and it will fail.
Expand Down
2 changes: 1 addition & 1 deletion ligen/generator/src/generator/file_generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub trait FileGenerator {
.join(self.base_path());
for (_path, file) in file_set.files {
let file_path = library_dir.join(&file.path);
write_file(&file_path, &file.to_string())?;
write_file(&file_path, file.to_string())?;
}
Ok(())
}
Expand Down

0 comments on commit 83f4407

Please sign in to comment.