We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_elem
1 parent 2fd9442 commit 91fcddeCopy full SHA for 91fcdde
library/alloc/src/vec/spec_from_elem.rs
@@ -64,7 +64,7 @@ impl SpecFromElem for u8 {
64
// but this cannot be implemented currently
65
impl SpecFromElem for () {
66
#[inline]
67
- fn from_elem<A: Allocator>(elem: (), n: usize, alloc: A) -> Vec<(), A> {
+ fn from_elem<A: Allocator>(_elem: (), n: usize, alloc: A) -> Vec<(), A> {
68
let mut v = Vec::with_capacity_in(n, alloc);
69
// SAFETY: the capacity has just been set to `n` and `()`
70
// is a ZST with trivial `Clone` implementation
0 commit comments