From 0e29b92bc0fec1dd836e419d13ea8717fcc82181 Mon Sep 17 00:00:00 2001 From: Zheming Li Date: Sun, 11 Jul 2021 15:33:44 +0800 Subject: [PATCH] format code to pass CI check --- oci_spec/src/lib.rs | 4 ++-- src/main.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/oci_spec/src/lib.rs b/oci_spec/src/lib.rs index 148301efe7..88b7822834 100644 --- a/oci_spec/src/lib.rs +++ b/oci_spec/src/lib.rs @@ -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(()) } } diff --git a/src/main.rs b/src/main.rs index df57eecfbb..c3eebf2dd6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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