aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
authorQuentin <quentin@dufour.io>2021-09-20 16:06:02 +0200
committerQuentin <quentin@dufour.io>2021-09-20 16:06:02 +0200
commit4d4d453afa3edafe71db2ae60171b8696b38a3c9 (patch)
tree64a54012efbac76bca6c5f0d8214fdae44743bc8 /src/config/options.rs
parent2bbc9109991f8bb79a09a965a1d2779e1749b25b (diff)
parent68cb4d5482649baca3a79d3fd0e3449a6af0533b (diff)
downloaddiplonat-4d4d453afa3edafe71db2ae60171b8696b38a3c9.tar.gz
diplonat-4d4d453afa3edafe71db2ae60171b8696b38a3c9.zip
Merge pull request 'Extensively use rustfmt' (#11) from quality/rustfmt into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/diplonat/pulls/11
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/config/options.rs b/src/config/options.rs
index f62d14c..b8dccf7 100644
--- a/src/config/options.rs
+++ b/src/config/options.rs
@@ -62,9 +62,7 @@ impl ConfigOpts {
// Currently only used in tests
#[allow(dead_code)]
pub fn from_iter<Iter: Clone>(iter: Iter) -> Result<RuntimeConfig>
- where
- Iter: IntoIterator<Item = (String, String)>,
- {
+ where Iter: IntoIterator<Item = (String, String)> {
let base: ConfigOptsBase = envy::prefixed("DIPLONAT_").from_iter(iter.clone())?;
let consul: ConfigOptsConsul = envy::prefixed("DIPLONAT_CONSUL_").from_iter(iter.clone())?;
let acme: ConfigOptsAcme = envy::prefixed("DIPLONAT_ACME_").from_iter(iter.clone())?;