Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gofmanaa committed Jul 24, 2024
1 parent 67b0e65 commit 2465f2d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/commands/agent/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ fn read_wasm_file(dir_path: &Path) -> Result<Vec<u8>, Box<dyn std::error::Error>
let wasm_file = wasm_files.first().expect("Wasm file not found");
let wasm_file_path = wasm_file.canonicalize()?;
println!("wasm_file: {:?}", wasm_file_path);
Ok(std::fs::read(wasm_file_path).expect("Error reading Wasm file, use command for build agent: `cargo-component build -r`"))
Ok(std::fs::read(wasm_file_path).expect(
"Error reading Wasm file, use command for build agent: `cargo-component build -r`",
))
}
_ => {
let items = wasm_files
Expand All @@ -146,7 +148,9 @@ fn read_wasm_file(dir_path: &Path) -> Result<Vec<u8>, Box<dyn std::error::Error>
let index = select_user_input(items);
let wasm_file = wasm_files.get(index).expect("Wasm file not found");
let wasm_file_path = wasm_file.canonicalize()?;
Ok(std::fs::read(wasm_file_path).expect("Error reading Wasm file, use command for build agent: `cargo-component build -r`"))
Ok(std::fs::read(wasm_file_path).expect(
"Error reading Wasm file, use command for build agent: `cargo-component build -r`",
))
}
}
}
Expand Down

0 comments on commit 2465f2d

Please sign in to comment.