summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-11-01 10:11:10 +0000
committerLars Wirzenius <liw@liw.fi>2021-11-01 10:11:10 +0000
commit52d71426814898ac93fac80d2a49927619790824 (patch)
treecf480e978f6559801001ab4d7056d85d62d5e1b3
parent300006a9a23f1f011dbc0f84d4d0e8797e65c0c4 (diff)
parent8a544eab46732df3b6ffd203358ddebf9c8f5fea (diff)
downloadvmadm-52d71426814898ac93fac80d2a49927619790824.tar.gz
Merge branch 'fix' into 'main'
chore: fix code formatting See merge request larswirzenius/vmadm!49
-rw-r--r--src/config.rs2
-rw-r--r--src/spec.rs2
-rw-r--r--src/util.rs4
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 {