Skip to content

Commit d00f4d4

Browse files
committed
Silence warnings about deprecated LayoutErr
1 parent e4c73e4 commit d00f4d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ extern crate std;
8686
#[cfg(test)]
8787
mod tests;
8888

89+
#[allow(deprecated)]
8990
use alloc::alloc::{Layout, LayoutErr};
9091
use alloc::boxed::Box;
9192
use alloc::{vec, vec::Vec};
@@ -238,6 +239,7 @@ impl fmt::Display for CollectionAllocErr {
238239
}
239240
}
240241

242+
#[allow(deprecated)]
241243
impl From<LayoutErr> for CollectionAllocErr {
242244
fn from(_: LayoutErr) -> Self {
243245
CollectionAllocErr::CapacityOverflow

0 commit comments

Comments
 (0)