Skip to content

Commit 91fcdde

Browse files
committed
chore(GH-118094): explicitly mark _elem as unused
Signed-off-by: Petr Portnov <me@progrm-jarvis.ru>
1 parent 2fd9442 commit 91fcdde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/spec_from_elem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl SpecFromElem for u8 {
6464
// but this cannot be implemented currently
6565
impl SpecFromElem for () {
6666
#[inline]
67-
fn from_elem<A: Allocator>(elem: (), n: usize, alloc: A) -> Vec<(), A> {
67+
fn from_elem<A: Allocator>(_elem: (), n: usize, alloc: A) -> Vec<(), A> {
6868
let mut v = Vec::with_capacity_in(n, alloc);
6969
// SAFETY: the capacity has just been set to `n` and `()`
7070
// is a ZST with trivial `Clone` implementation

0 commit comments

Comments
 (0)