Skip to content

Commit

Permalink
addressed linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Nov 20, 2023
1 parent 5cec518 commit 72697a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cargo-near/src/commands/new/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl NewContext {

for new_project_file in NEW_PROJECT_FILES {
let new_file_path = project_dir.join(new_project_file.file_path);
std::fs::create_dir_all(&new_file_path.parent().wrap_err_with(|| {
std::fs::create_dir_all(new_file_path.parent().wrap_err_with(|| {
format!("Impossible to get parent for `{}`", new_file_path.display())
})?)?;
std::fs::write(
Expand All @@ -39,7 +39,7 @@ impl NewContext {

std::process::Command::new("git")
.arg("init")
.current_dir(&project_dir)
.current_dir(project_dir)
.output()
.wrap_err("Failed to execute process: `git init`")?;

Expand Down
2 changes: 1 addition & 1 deletion cargo-near/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ pub(crate) fn compile_project(
let dylib_files = compile_artifact
.filenames
.iter()
.cloned()
.filter(|f| {
f.extension()
.map(|e| e == artifact_extension)
.unwrap_or(false)
})
.cloned()
.collect();
let mut dylib_files_iter = Vec::into_iter(dylib_files);
match (dylib_files_iter.next(), dylib_files_iter.next()) {
Expand Down

0 comments on commit 72697a0

Please sign in to comment.