chore: use ref to get slice

This commit is contained in:
rvcas 2022-05-30 18:26:49 -04:00
parent 3f1ddef635
commit 31e7d63d9a
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 1 additions and 1 deletions

View File

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