Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cwkang1998 committed Nov 22, 2024
1 parent 5b5ea0d commit 24185ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/sncast/src/starknet_commands/verify/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::ffi::OsStr;
use walkdir::WalkDir;

fn read_workspace_files(
workspace_dir: Utf8PathBuf,
workspace_dir: &Utf8PathBuf,
) -> Result<serde_json::Map<String, serde_json::Value>> {
// Read all files name along with their contents in a JSON format
// in the workspace dir recursively
Expand Down Expand Up @@ -73,7 +73,7 @@ pub trait VerificationInterface {
class_hash: Option<Felt>,
contract_name: String,
) -> Result<VerifyResponse> {
let file_data = read_workspace_files(workspace_dir)?;
let file_data = read_workspace_files(&workspace_dir)?;
let source_code = serde_json::Value::Object(file_data);
let payload = VerificationPayload {
contract_name,
Expand Down
2 changes: 1 addition & 1 deletion crates/sncast/src/starknet_commands/verify/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub struct Verify {
pub custom_base_api_url: Option<String>,
}

#[derive(ValueEnum, Clone, Debug)]
#[derive(ValueEnum, Clone, Copy, Debug)]
pub enum Verifier {
Walnut,
Voyager,
Expand Down

0 comments on commit 24185ac

Please sign in to comment.