Constant-time tests: Take Clippy's op_ref advice.

This commit is contained in:
Brian Smith 2020-11-11 13:09:36 -08:00
parent 8015140fa6
commit cb45bf0ddc

View File

@ -67,7 +67,7 @@ fn test_verify_slices_are_equal() {
// The flipped bit is outside of `b` so `a` and `b` are equal.
Ok(())
};
assert_eq!((&a == &b), expected_result.is_ok()); // Sanity check.
assert_eq!(a == b, expected_result.is_ok()); // Sanity check.
assert_eq!(
constant_time::verify_slices_are_equal(&a, &b),
expected_result