… I think.
This commit is contained in:
Simon Sapin 2015-10-30 01:00:39 +09:00
parent 01fd4d6227
commit 4e8b8707bf

View File

@ -354,7 +354,7 @@ pub fn reserve(&mut self, used_cap: usize, needed_extra_cap: usize) {
// panic.
// Don't actually need any more capacity.
// Wrapping in case they give a bas `used_cap`
// Wrapping in case they give a bad `used_cap`
if self.cap().wrapping_sub(used_cap) >= needed_extra_cap {
return;
}