Skip to content

Commit

Permalink
use global default instead of scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Aug 7, 2023
1 parent bf14261 commit 6744faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl Environment {
pub fn new(env: Option<Environment>) -> Environment {
match env {
Some(e) => e,
None => Environment::default(),
None => Default::default(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Schierke {
impl Schierke {
pub fn new() -> Schierke {
Schierke {
global: Environment::default(),
global: Default::default(),
}
}

Expand Down

0 comments on commit 6744faf

Please sign in to comment.