Skip to content

Commit

Permalink
remove some clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jun 30, 2024
1 parent 84898c1 commit ee6b95d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/wasmtime/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub fn main() -> Result<()> {
}*/

debug!("Create Linker");
#[allow(unused_mut)]
let mut linker = Linker::new(&engine);

#[cfg(target_os = "hermit")]
Expand Down Expand Up @@ -82,7 +83,7 @@ pub fn main() -> Result<()> {
let values = Vec::new();
let invoke_res = func
.call(&mut store, &values, &mut results)
.with_context(|| format!("failed to invoke command default"));
.with_context(|| "failed to invoke command default".to_string());

info!("Return value of entry point: {:?}", invoke_res);

Expand Down

0 comments on commit ee6b95d

Please sign in to comment.