From d00f4d4736e9fcfc4471226846cdeb3da7b0defb Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Tue, 29 Dec 2020 20:27:11 -0800 Subject: [PATCH] Silence warnings about deprecated LayoutErr --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 447f3cd..7912005 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,6 +86,7 @@ extern crate std; #[cfg(test)] mod tests; +#[allow(deprecated)] use alloc::alloc::{Layout, LayoutErr}; use alloc::boxed::Box; use alloc::{vec, vec::Vec}; @@ -238,6 +239,7 @@ impl fmt::Display for CollectionAllocErr { } } +#[allow(deprecated)] impl From for CollectionAllocErr { fn from(_: LayoutErr) -> Self { CollectionAllocErr::CapacityOverflow