diff options
Diffstat (limited to 'src/files.rs')
| -rw-r--r-- | src/files.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/files.rs b/src/files.rs index f49bd5e..97521f8 100644 --- a/src/files.rs +++ b/src/files.rs @@ -1,6 +1,6 @@ use std::path::{Component, Path, PathBuf}; -use anyhow::{bail, Result}; +use anyhow::{Result, bail}; #[derive(Debug, Clone, PartialEq, Eq)] pub struct RootfsPath(PathBuf); @@ -9,7 +9,10 @@ impl RootfsPath { pub fn new(path: impl AsRef<Path>) -> Result<Self> { let path = path.as_ref(); if path.as_os_str().is_empty() || path.is_absolute() { - bail!("rootfs path must be a non-empty relative path: {}", path.display()); + bail!( + "rootfs path must be a non-empty relative path: {}", + path.display() + ); } let mut normalized = PathBuf::new(); |