refactor(tvix/eval): use or_default
helper in entry API
This fixes a future clippy lint. Change-Id: Ic830e94ef23595580c1037f10878c76bbb546dd9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10110 Tested-by: BuildkiteCI Reviewed-by: Adam Joseph <adam@westernsemico.com>
This commit is contained in:
parent
5ffb997864
commit
e65fa82d74
1 changed files with 1 additions and 3 deletions
|
@ -457,9 +457,7 @@ mod pure_builtins {
|
||||||
.await
|
.await
|
||||||
.to_str()?;
|
.to_str()?;
|
||||||
|
|
||||||
res.entry(key)
|
res.entry(key).or_default().push_back(val);
|
||||||
.or_insert_with(imbl::Vector::new)
|
|
||||||
.push_back(val);
|
|
||||||
}
|
}
|
||||||
Ok(Value::attrs(NixAttrs::from_iter(
|
Ok(Value::attrs(NixAttrs::from_iter(
|
||||||
res.into_iter()
|
res.into_iter()
|
||||||
|
|
Loading…
Reference in a new issue