diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-11-01 12:10:54 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-11-01 12:10:54 +0200 |
commit | 8a544eab46732df3b6ffd203358ddebf9c8f5fea (patch) | |
tree | cf480e978f6559801001ab4d7056d85d62d5e1b3 /src | |
parent | 300006a9a23f1f011dbc0f84d4d0e8797e65c0c4 (diff) | |
download | vmadm-8a544eab46732df3b6ffd203358ddebf9c8f5fea.tar.gz |
chore: fix code formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 2 | ||||
-rw-r--r-- | src/spec.rs | 2 | ||||
-rw-r--r-- | src/util.rs | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 9e91eb4..a444d4e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -56,7 +56,7 @@ pub enum ConfigurationError { /// Error expanding a ~user in a path name. #[error(transparent)] - HomeDirError(#[from] home_dir::Error) + HomeDirError(#[from] home_dir::Error), } impl Configuration { diff --git a/src/spec.rs b/src/spec.rs index 87e59a2..4e5665e 100644 --- a/src/spec.rs +++ b/src/spec.rs @@ -248,7 +248,7 @@ pub enum SpecificationError { /// Error expanding a ~user in a path name. #[error(transparent)] - HomeDirError(#[from] home_dir::Error) + HomeDirError(#[from] home_dir::Error), } impl Specification { diff --git a/src/util.rs b/src/util.rs index 2db4390..c3565e0 100644 --- a/src/util.rs +++ b/src/util.rs @@ -31,7 +31,9 @@ pub fn expand_optional_pathbuf(maybe_path: &mut Option<PathBuf>) -> Result<(), h Ok(()) } -pub fn expand_optional_pathbufs(maybe_paths: &mut Option<Vec<PathBuf>>) -> Result<(), home_dir::Error> { +pub fn expand_optional_pathbufs( + maybe_paths: &mut Option<Vec<PathBuf>>, +) -> Result<(), home_dir::Error> { if let Some(paths) = maybe_paths { let mut expanded = vec![]; for path in paths { |