style: Parenthesize potentially confusing expression

As suggested by the clippy precedence lint
pull/24376/head
Carol (Nichols || Goulding) 2020-02-17 10:19:42 -05:00
parent dd7d6e838f
commit 7cc871b305
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ mod tests {
#[test]
fn test_encode_too_big() {
let src = vec![7, 6, 2 << 61 - 1, 4, 3, 2, 1];
let src = vec![7, 6, 2 << (61 - 1), 4, 3, 2, 1];
let mut encoded = vec![];
match encode_all(&src, &mut encoded) {