From 2465f2d1c3ac740c80b16d9a2cff64b255e336c9 Mon Sep 17 00:00:00 2001 From: Olexander Hofman Date: Wed, 24 Jul 2024 15:20:17 +0100 Subject: [PATCH] fix lint --- src/commands/agent/publish.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/commands/agent/publish.rs b/src/commands/agent/publish.rs index 0ef47ef..4a0e117 100644 --- a/src/commands/agent/publish.rs +++ b/src/commands/agent/publish.rs @@ -136,7 +136,9 @@ fn read_wasm_file(dir_path: &Path) -> Result, Box 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 @@ -146,7 +148,9 @@ fn read_wasm_file(dir_path: &Path) -> Result, Box 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`", + )) } } }