diff options
Diffstat (limited to 'src/package_installer.rs')
| -rw-r--r-- | src/package_installer.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/package_installer.rs b/src/package_installer.rs index 03e429f..ec84add 100644 --- a/src/package_installer.rs +++ b/src/package_installer.rs @@ -1,6 +1,6 @@ use std::path::{Path, PathBuf}; -use anyhow::{bail, Result}; +use anyhow::{Result, bail}; #[derive(Debug, Clone, PartialEq, Eq)] pub struct AptConfig(PathBuf); @@ -12,7 +12,10 @@ impl AptConfig { bail!("APT configuration must be a file path: {}", path.display()); } if !path.is_file() { - bail!("APT configuration does not exist or is not a regular file: {}", path.display()); + bail!( + "APT configuration does not exist or is not a regular file: {}", + path.display() + ); } Ok(Self(path.to_path_buf())) } |