diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-01 12:46:01 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-06-01 12:55:07 +0200 |
| commit | 7218892c722ca583297c0ebbda350bdf6f16d3ce (patch) | |
| tree | 27ebbfaf0662c1e0dd01e7c5e9e360ab288cae4d /src/eval/scope.rs | |
| parent | 9bdb0bdeffa5e4b6da9e3f6d3c1b79c506005fc5 (diff) | |
Refactor path handling
Diffstat (limited to 'src/eval/scope.rs')
| -rw-r--r-- | src/eval/scope.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/eval/scope.rs b/src/eval/scope.rs index cfa2bccd..e5afb6b0 100644 --- a/src/eval/scope.rs +++ b/src/eval/scope.rs @@ -22,16 +22,7 @@ pub struct Scopes<'a> { impl<'a> Scopes<'a> { /// Create a new, empty hierarchy of scopes. - pub fn new() -> Self { - Self { - top: Scope::new(), - scopes: vec![], - base: None, - } - } - - /// Create a new hierarchy of scopes with a base scope. - pub fn with_base(base: Option<&'a Scope>) -> Self { + pub fn new(base: Option<&'a Scope>) -> Self { Self { top: Scope::new(), scopes: vec![], base } } |
