Skip to content

Commit

Permalink
Fixing missplaced use statements and missing Cargo crates
Browse files Browse the repository at this point in the history
Signed-off-by: piotrpalcz <[email protected]>
  • Loading branch information
piotrpalcz committed Nov 20, 2023
1 parent 5404013 commit 60d9b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/runtime-boot/init/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ edition = "2018"
libc = "0.2.147"
serde = { version = "1.0.183", features = ["derive"] }
serde_json = "1.0.104"
nix = { version = "0.26" }
anyhow = { version = "1.0", default-features = false }
7 changes: 2 additions & 5 deletions src/runtime-boot/init/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extern crate serde_json;

use libc::syscall;

use anyhow::{anyhow, Result};
use anyhow::Result;
use nix::mount::MsFlags;
use std::error::Error;
use std::ffi::CString;
Expand All @@ -13,11 +13,8 @@ use std::fs::File;
use std::io::prelude::*;
use std::io::{ErrorKind, Read};

use anyhow::{anyhow, Result};
use std::ffi::CString;
use std::fs;
use std::mem::size_of;
use std::path::{Path, PathBuf};
use std::path::Path;

fn main() -> Result<(), Box<dyn Error>> {
let rootfs_upper_layer = "/sefs/upper";
Expand Down

0 comments on commit 60d9b8f

Please sign in to comment.