summaryrefslogtreecommitdiffstats
path: root/src/env.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/env.rs')
-rw-r--r--src/env.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/env.rs b/src/env.rs
index 736d584..4ea7bd0 100644
--- a/src/env.rs
+++ b/src/env.rs
@@ -5,7 +5,7 @@ use crate::map::Map;
use crate::source::Source;
use crate::value::{Value, ValueKind};
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
pub struct Environment {
/// Optional prefix that will limit access to the environment to only keys that
/// begin with the defined prefix.
@@ -63,17 +63,6 @@ impl Environment {
}
}
-impl Default for Environment {
- fn default() -> Environment {
- Environment {
- prefix: None,
- separator: None,
- ignore_empty: false,
- try_parsing: false,
- }
- }
-}
-
impl Source for Environment {
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> {
Box::new((*self).clone())