Skip to content

Commit 7691e9e

Browse files
committed
chore: clippy
1 parent 2081585 commit 7691e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/e2e/src/contract_build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl ContractProject {
8080
fn new() -> Self {
8181
let mut cmd = cargo_metadata::MetadataCommand::new();
8282
let env_target_dir = env::var_os("CARGO_TARGET_DIR")
83-
.map(|target_dir| PathBuf::from(target_dir))
83+
.map(PathBuf::from)
8484
.filter(|target_dir| target_dir.is_absolute());
8585
if let Some(target_dir) = env_target_dir.as_ref() {
8686
cmd.env("CARGO_TARGET_DIR", target_dir);
@@ -126,7 +126,7 @@ impl ContractProject {
126126

127127
let package_abi = metadata
128128
.root_package()
129-
.and_then(|package| package_abi(package))
129+
.and_then(package_abi)
130130
.and_then(Result::ok);
131131
log_info(&format!("found root package abi: {:?}", package_abi));
132132

0 commit comments

Comments
 (0)