Skip to content

Commit

Permalink
Minor clippy fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Lopez <[email protected]>
  • Loading branch information
slp committed Sep 27, 2024
1 parent f8cebac commit 0ca54d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/krun/src/bin/krun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fn main() -> Result<()> {
let disks: Vec<String> = if !options.fex_images.is_empty() {
options.fex_images
} else {
let default_disks = vec![
let default_disks = [
"/usr/share/fex-emu/RootFS/default.erofs",
"/usr/share/fex-emu/overlays/mesa.erofs",
];
Expand Down
2 changes: 1 addition & 1 deletion crates/krun/src/guest/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ fn mount_fex_rootfs() -> Result<()> {
pub fn mount_filesystems() -> Result<()> {
make_tmpfs("/var/run")?;

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

Expand Down

0 comments on commit 0ca54d8

Please sign in to comment.