Skip to content

Commit 7956dd9

Browse files
committed
Fix lint errors
1 parent 174c1d0 commit 7956dd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/sncast/src/starknet_commands/verify/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::ffi::OsStr;
99
use walkdir::WalkDir;
1010

1111
fn read_workspace_files(
12-
workspace_dir: Utf8PathBuf,
12+
workspace_dir: &Utf8PathBuf,
1313
) -> Result<serde_json::Map<String, serde_json::Value>> {
1414
// Read all files name along with their contents in a JSON format
1515
// in the workspace dir recursively
@@ -73,7 +73,7 @@ pub trait VerificationInterface {
7373
class_hash: Option<Felt>,
7474
contract_name: String,
7575
) -> Result<VerifyResponse> {
76-
let file_data = read_workspace_files(workspace_dir)?;
76+
let file_data = read_workspace_files(&workspace_dir)?;
7777
let source_code = serde_json::Value::Object(file_data);
7878
let payload = VerificationPayload {
7979
contract_name,

crates/sncast/src/starknet_commands/verify/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub struct Verify {
5959
pub custom_base_api_url: Option<String>,
6060
}
6161

62-
#[derive(ValueEnum, Clone, Debug)]
62+
#[derive(ValueEnum, Clone, Copy, Debug)]
6363
pub enum Verifier {
6464
Walnut,
6565
Voyager,

0 commit comments

Comments
 (0)