diff options
| author | John Kugelman <john@kugelman.name> | 2021-10-14 19:56:53 -0400 |
|---|---|---|
| committer | Kugelman, John R <Kugelman.John@vast-inc.com> | 2021-10-15 11:46:49 -0400 |
| commit | fb2d0f5c03d2f699eb87bc1986386bdcf6a3f6eb (patch) | |
| tree | 28c56c4502ee837b968171f9508e6f4ca87deed5 /library/alloc/src/vec/drain.rs | |
| parent | e1e9319d93aea755c444c8f8ff863b0936d7a4b6 (diff) | |
| download | rust-fb2d0f5c03d2f699eb87bc1986386bdcf6a3f6eb.tar.gz rust-fb2d0f5c03d2f699eb87bc1986386bdcf6a3f6eb.zip | |
Add #[must_use] to remaining alloc functions
Diffstat (limited to 'library/alloc/src/vec/drain.rs')
| -rw-r--r-- | library/alloc/src/vec/drain.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/vec/drain.rs b/library/alloc/src/vec/drain.rs index e643940d017..ff98091a0d2 100644 --- a/library/alloc/src/vec/drain.rs +++ b/library/alloc/src/vec/drain.rs @@ -60,6 +60,7 @@ impl<'a, T, A: Allocator> Drain<'a, T, A> { /// Returns a reference to the underlying allocator. #[unstable(feature = "allocator_api", issue = "32838")] + #[must_use] #[inline] pub fn allocator(&self) -> &A { unsafe { self.vec.as_ref().allocator() } |
