fix(tvix/eval): address current clippy & grfn lints
Change-Id: I65c6feb9f817b5b367d37204a1f57acfe4100d97 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6430 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
This commit is contained in:
parent
fe047885d7
commit
09eaa0d4ae
5 changed files with 32 additions and 38 deletions
|
|
@ -180,10 +180,11 @@ impl Scope {
|
|||
/// correctly nesting scopes in lambdas and thunks when special
|
||||
/// scope features like poisoning are present).
|
||||
pub fn inherit(&self) -> Self {
|
||||
let mut scope = Self::default();
|
||||
scope.poisoned_tokens = self.poisoned_tokens.clone();
|
||||
scope.scope_depth = self.scope_depth;
|
||||
scope
|
||||
Self {
|
||||
poisoned_tokens: self.poisoned_tokens.clone(),
|
||||
scope_depth: self.scope_depth,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
/// Check whether a given token is poisoned.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue