refactor(tvix/eval): remove usage of lazy_static
Equivalent logic is now in the standard library, and this dependency is no longer needed for eval. Change-Id: Iaa4410d89fdaa5b84cbd9e6bc6ae479c659d92f2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12602 Autosubmit: tazjin <tazjin@tvl.su> Reviewed-by: edef <edef@edef.eu> Tested-by: BuildkiteCI
This commit is contained in:
parent
b7a6fc2812
commit
b21cb11b7f
6 changed files with 26 additions and 38 deletions
|
|
@ -84,10 +84,10 @@ fn test_kv_attrs_iter() {
|
|||
|
||||
let mut iter = kv_attrs.iter().collect::<Vec<_>>().into_iter();
|
||||
let (k, v) = iter.next().unwrap();
|
||||
assert!(k == *NAME_REF);
|
||||
assert!(*k == *NAME);
|
||||
assert!(v.to_str().unwrap() == meaning_val.to_str().unwrap());
|
||||
let (k, v) = iter.next().unwrap();
|
||||
assert!(k == *VALUE_REF);
|
||||
assert!(*k == *VALUE);
|
||||
assert!(v.as_int().unwrap() == forty_two_val.as_int().unwrap());
|
||||
assert!(iter.next().is_none());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue