1
0
mirror of https://github.com/containers/youki synced 2025-04-30 13:20:17 +02:00

format code to pass CI check

This commit is contained in:
Zheming Li 2021-07-11 15:38:45 +08:00
parent 599676e8b6
commit f8b08c08f0
2 changed files with 2 additions and 3 deletions

@ -3,7 +3,7 @@ use std::collections::HashMap;
use std::fs::File;
use std::path::{Path, PathBuf};
use anyhow::{Context, Result, bail};
use anyhow::{bail, Context, Result};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
@ -616,7 +616,7 @@ impl Spec {
pub fn canonicalize_rootfs(&mut self) -> Result<()> {
self.root.path = std::fs::canonicalize(&self.root.path)
.with_context(|| format!("failed to canonicalize {:?}", self.root.path))?;
.with_context(|| format!("failed to canonicalize {:?}", self.root.path))?;
Ok(())
}
}

@ -17,7 +17,6 @@ use youki::rootless::should_use_rootless;
use youki::start;
use youki::state;
/// High-level commandline option definition
/// This takes global options as well as individual commands as specified in [OCI runtime-spec](https://github.com/opencontainers/runtime-spec/blob/master/runtime.md)
/// Also check [runc commandline documentation](https://github.com/opencontainers/runc/blob/master/man/runc.8.md) for more explanation