Skip to content

Commit

Permalink
Applied clippy suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Apr 26, 2023
1 parent 4476a1e commit 256fbc0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/containerd-shim-wasmtime/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,7 @@ pub fn prepare_module(
if let Some(strpd) = stripped {
cmd = strpd.to_string();
}
let method = match iterator.next() {
Some(f) => f,
None => "_start",
};
let method = iterator.next().unwrap_or("_start");

let mod_path = oci::get_root(spec).join(cmd);
debug!("loading module from file");
Expand Down

0 comments on commit 256fbc0

Please sign in to comment.