diff options
Diffstat (limited to 'tvix/derivation/src/tests/mod.rs')
-rw-r--r-- | tvix/derivation/src/tests/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/derivation/src/tests/mod.rs b/tvix/derivation/src/tests/mod.rs index 9c8ffd061c11..800806926976 100644 --- a/tvix/derivation/src/tests/mod.rs +++ b/tvix/derivation/src/tests/mod.rs @@ -1,4 +1,4 @@ -use super::{serialize_derivation, Derivation}; +use crate::derivation::Derivation; use std::fs::File; use std::io::Read; use std::path::Path; @@ -19,7 +19,7 @@ fn assert_derivation_ok(path_to_drv_file: &str) { let derivation: Derivation = serde_json::from_str(&data).expect("JSON was not well-formatted"); let mut serialized_derivation = String::new(); - serialize_derivation(derivation, &mut serialized_derivation).unwrap(); + derivation.serialize(&mut serialized_derivation).unwrap(); let expected = read_file(path_to_drv_file); |