Skip to content

Commit 8fa80ff

Browse files
committed
Fix clippy: Remove Default impl for Environment, derive it
Signed-off-by: Matthias Beyer <[email protected]>
1 parent 3b45e7f commit 8fa80ff

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/env.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::map::Map;
55
use crate::source::Source;
66
use crate::value::{Value, ValueKind};
77

8-
#[derive(Clone, Debug)]
8+
#[derive(Clone, Debug, Default)]
99
pub struct Environment {
1010
/// Optional prefix that will limit access to the environment to only keys that
1111
/// begin with the defined prefix.
@@ -63,17 +63,6 @@ impl Environment {
6363
}
6464
}
6565

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-
7766
impl Source for Environment {
7867
fn clone_into_box(&self) -> Box<dyn Source + Send + Sync> {
7968
Box::new((*self).clone())

0 commit comments

Comments
 (0)