Skip to content

Commit e1f4d20

Browse files
committed
libkrun: replace manual implementation of ok
Signed-off-by: Sergio Lopez <[email protected]>
1 parent f2692bf commit e1f4d20

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/libkrun/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,7 @@ impl KrunfwBindings {
105105
}
106106

107107
pub fn new() -> Option<Self> {
108-
match Self::load_bindings() {
109-
Ok(bindings) => Some(bindings),
110-
Err(_) => None,
111-
}
108+
Self::load_bindings().ok()
112109
}
113110
}
114111

0 commit comments

Comments
 (0)