We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b45e7f commit 8fa80ffCopy full SHA for 8fa80ff
src/env.rs
@@ -5,7 +5,7 @@ use crate::map::Map;
5
use crate::source::Source;
6
use crate::value::{Value, ValueKind};
7
8
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, Default)]
9
pub struct Environment {
10
/// Optional prefix that will limit access to the environment to only keys that
11
/// begin with the defined prefix.
@@ -63,17 +63,6 @@ impl Environment {
63
}
64
65
66
-impl Default for Environment {
67
- fn default() -> Environment {
68
- Environment {
69
- prefix: None,
70
- separator: None,
71
- ignore_empty: false,
72
- try_parsing: false,
73
- }
74
75
-}
76
-
77
impl Source for Environment {
78
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> {
79
Box::new((*self).clone())
0 commit comments