diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-03 16:01:29 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-12 22:53:13 +0200 |
| commit | 93a9ad4897e560ccd5ebc3397afb7d83d990ef42 (patch) | |
| tree | 9712baa4ee6bf075c039b61a216351ea7777977e /src/liballoc/raw_vec.rs | |
| parent | 157ff8cd0562eefdd7aa296395c38a7bc259a4b9 (diff) | |
| download | rust-93a9ad4897e560ccd5ebc3397afb7d83d990ef42.tar.gz rust-93a9ad4897e560ccd5ebc3397afb7d83d990ef42.zip | |
Remove the now-unit-struct AllocErr field inside CollectionAllocErr
Diffstat (limited to 'src/liballoc/raw_vec.rs')
| -rw-r--r-- | src/liballoc/raw_vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/raw_vec.rs b/src/liballoc/raw_vec.rs index 25d759764a5..d7c30925f1a 100644 --- a/src/liballoc/raw_vec.rs +++ b/src/liballoc/raw_vec.rs @@ -444,7 +444,7 @@ impl<T, A: Alloc> RawVec<T, A> { pub fn reserve_exact(&mut self, used_cap: usize, needed_extra_cap: usize) { match self.try_reserve_exact(used_cap, needed_extra_cap) { Err(CapacityOverflow) => panic!("capacity overflow"), - Err(AllocErr(_)) => self.a.oom(), + Err(AllocErr) => self.a.oom(), Ok(()) => { /* yay */ } } } @@ -554,7 +554,7 @@ impl<T, A: Alloc> RawVec<T, A> { pub fn reserve(&mut self, used_cap: usize, needed_extra_cap: usize) { match self.try_reserve(used_cap, needed_extra_cap) { Err(CapacityOverflow) => panic!("capacity overflow"), - Err(AllocErr(_)) => self.a.oom(), + Err(AllocErr) => self.a.oom(), Ok(()) => { /* yay */ } } } |
