diff options
| author | Hermes Agent <hermes@localhost> | 2026-08-12 07:48:21 +0000 |
|---|---|---|
| committer | Hermes Agent <hermes@localhost> | 2026-08-12 07:48:21 +0000 |
| commit | f967d698efd44473a9285e02d0109f3bb0641622 (patch) | |
| tree | c94975571db9426cf71b15c9e6d16346e438c7c6 /src/files.rs | |
| parent | 5e6cae20331f8e7cfd551b4656f0de852a4ad44c (diff) | |
Format native builder and satisfy clippy
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(); |