aboutsummaryrefslogtreecommitdiff
path: root/src/config/options.rs
diff options
context:
space:
mode:
authorLUXEY Adrien <adrien.luxey@inria.fr>2021-08-16 11:34:42 +0200
committerLUXEY Adrien <adrien.luxey@inria.fr>2021-08-16 11:34:42 +0200
commit0f114f21344ddb59f50fed68540c54c41300cf51 (patch)
tree19eeade4f063ca801f345eb684acf94f175b20ed /src/config/options.rs
parent644e7079562b3218243c98c89b5bcb47c1d1ab48 (diff)
downloaddiplonat-0f114f21344ddb59f50fed68540c54c41300cf51.tar.gz
diplonat-0f114f21344ddb59f50fed68540c54c41300cf51.zip
a last pass to remove warnings from my code
Diffstat (limited to 'src/config/options.rs')
-rw-r--r--src/config/options.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config/options.rs b/src/config/options.rs
index 27b1af1..36da475 100644
--- a/src/config/options.rs
+++ b/src/config/options.rs
@@ -59,6 +59,8 @@ 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)> {
let base: ConfigOptsBase = envy::prefixed("DIPLONAT_").from_iter(iter.clone())?;