chore(GH-118094): explicitly mark _elem
as unused
Signed-off-by: Petr Portnov <me@progrm-jarvis.ru>
This commit is contained in:
parent
2fd9442afc
commit
91fcdde51b
@ -64,7 +64,7 @@ fn from_elem<A: Allocator>(elem: u8, n: usize, alloc: A) -> Vec<u8, A> {
|
|||||||
// but this cannot be implemented currently
|
// but this cannot be implemented currently
|
||||||
impl SpecFromElem for () {
|
impl SpecFromElem for () {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_elem<A: Allocator>(elem: (), n: usize, alloc: A) -> Vec<(), A> {
|
fn from_elem<A: Allocator>(_elem: (), n: usize, alloc: A) -> Vec<(), A> {
|
||||||
let mut v = Vec::with_capacity_in(n, alloc);
|
let mut v = Vec::with_capacity_in(n, alloc);
|
||||||
// SAFETY: the capacity has just been set to `n` and `()`
|
// SAFETY: the capacity has just been set to `n` and `()`
|
||||||
// is a ZST with trivial `Clone` implementation
|
// is a ZST with trivial `Clone` implementation
|
||||||
|
Loading…
Reference in New Issue
Block a user