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:
Vincent Ambo 2023-11-22 22:37:42 +03:00 committed by tazjin
parent 5ffb997864
commit e65fa82d74

View file

@ -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()