From b4cebec658f0e322efe384981ec6162a8a94e67c Mon Sep 17 00:00:00 2001 From: Marek Kaput Date: Wed, 24 Jan 2024 10:18:18 +0100 Subject: [PATCH] Apply suggestions from code review Signed-off-by: Marek Kaput --- scarb/src/compiler/compilers/starknet_contract.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scarb/src/compiler/compilers/starknet_contract.rs b/scarb/src/compiler/compilers/starknet_contract.rs index c0b0bd436..47b69ecf3 100644 --- a/scarb/src/compiler/compilers/starknet_contract.rs +++ b/scarb/src/compiler/compilers/starknet_contract.rs @@ -173,13 +173,13 @@ impl ContractArtifacts { package_name: &PackageName, contract_name: &str, contract_path: &str, - module_path: String, + module_path: &str, ) -> Self { Self { id: short_hash((&package_name, &contract_path)), package_name: package_name.clone(), contract_name: contract_name.to_owned(), - module_path, + module_path: module_path.to_owned(), artifacts: ContractArtifact::default(), } } @@ -282,7 +282,7 @@ impl Compiler for StarknetContractCompiler { &package_name, &contract_name, contract_selector.full_path().as_str(), - decl.module_id().full_path(db.upcast_mut()).clone(), + &decl.module_id().full_path(db.upcast_mut()), ); if props.sierra {