about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2016-09-13 10:25:49 +0200
committerGitHub <noreply@github.com>2016-09-13 10:25:49 +0200
commitd6aa4e828c3dc3b7c417197990741b024f8c4ca3 (patch)
tree17ae7feb4d4a34553b4ae01d72ce08e32401ea2b /src/test/incremental/thinlto
parent2a88e6c42e81a7fc30e76b1508c3583bc05d2415 (diff)
parentc8b656bea5e90f1e174bee7e65cbd362914264b3 (diff)
downloadrust-d6aa4e828c3dc3b7c417197990741b024f8c4ca3.tar.gz
rust-d6aa4e828c3dc3b7c417197990741b024f8c4ca3.zip
Rollup merge of #36397 - SuperFluffy:bufwriter_unnecessary_cmp, r=aturon
Remove unnecessary `cmp::min` from BufWriter::write

The first branch of the if statement already checks if `buf.len() >= self.buf.capacity()`, which makes the `cmp::min(buf.len(), self.buf.capacity())` redundant: the result will always be `buf.len()`. Therefore, we can pass the `buf` slice directly into `Write::write`.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions