chore: use ref to get slice
This commit is contained in:
parent
3f1ddef635
commit
31e7d63d9a
|
@ -267,7 +267,7 @@ mod test {
|
|||
term: Term::Constant(Constant::Integer(11)),
|
||||
};
|
||||
|
||||
let actual_program: Program = Program::unflat(flat_encoded.as_slice()).unwrap();
|
||||
let actual_program: Program = Program::unflat(&flat_encoded).unwrap();
|
||||
|
||||
assert_eq!(actual_program, expected_program)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue