Skip to content

Commit 5be4ee1

Browse files
lint
1 parent 833c6ad commit 5be4ee1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,7 @@ fn display_init_args(init_args: &[u8], canister_id: PrincipalId) -> String {
339339
}
340340

341341
fn unwrap_type(type_: candid::types::Type) -> anyhow::Result<candid::types::TypeInner> {
342-
let type_: Rc<_> = match type_ {
343-
candid::types::Type(ok) => ok,
344-
};
342+
let candid::types::Type(type_) = type_;
345343

346344
Rc::into_inner(type_).context("unable to unwrap type")
347345
}

0 commit comments

Comments
 (0)