diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2017-12-23 19:28:33 -0800 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2018-01-18 08:33:58 -0800 |
| commit | 14982db2d68268458a3de03e395b2e9afe518b50 (patch) | |
| tree | d24dc1e4035a4109c9e78d52762b34eeff645e14 /src/liballoc | |
| parent | 44afd76788df1a63fcd3fe19815eb28dbe9c2bf7 (diff) | |
| download | rust-14982db2d68268458a3de03e395b2e9afe518b50.tar.gz rust-14982db2d68268458a3de03e395b2e9afe518b50.zip | |
in which the unused-parens lint comes to cover function and method args
Resolves #46137.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/vec_deque.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/vec_deque.rs b/src/liballoc/vec_deque.rs index f56aa23a4eb..1f6c6660d9b 100644 --- a/src/liballoc/vec_deque.rs +++ b/src/liballoc/vec_deque.rs @@ -2480,7 +2480,7 @@ impl<T> From<VecDeque<T>> for Vec<T> { if other.is_contiguous() { ptr::copy(buf.offset(tail as isize), buf, len); } else { - if (tail - head) >= cmp::min((cap - tail), head) { + if (tail - head) >= cmp::min(cap - tail, head) { // There is enough free space in the centre for the shortest block so we can // do this in at most three copy moves. if (cap - tail) > head { |
