Skip to content

Commit 8f97547

Browse files
slpalyssarosenzweig
authored andcommitted
Minor clippy fixes
Signed-off-by: Sergio Lopez <[email protected]>
1 parent f8cebac commit 8f97547

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/krun/src/bin/krun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn main() -> Result<()> {
149149
let disks: Vec<String> = if !options.fex_images.is_empty() {
150150
options.fex_images
151151
} else {
152-
let default_disks = vec![
152+
let default_disks = [
153153
"/usr/share/fex-emu/RootFS/default.erofs",
154154
"/usr/share/fex-emu/overlays/mesa.erofs",
155155
];

crates/krun/src/guest/mount.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn mount_fex_rootfs() -> Result<()> {
9393
pub fn mount_filesystems() -> Result<()> {
9494
make_tmpfs("/var/run")?;
9595

96-
if let Err(_) = mount_fex_rootfs() {
96+
if mount_fex_rootfs().is_err() {
9797
println!("Failed to mount FEX rootfs, carrying on without.")
9898
}
9999

0 commit comments

Comments
 (0)