Skip to content

Commit f5f1a22

Browse files
authored
Auto merge of #246 - mbrubeck:warnings, r=jdm
Silence warnings about deprecated LayoutErr This is renamed to LayoutError in Rust 1.51 and later, but we need to continue using the old name to support older versions of Rust.
2 parents e4c73e4 + d00f4d4 commit f5f1a22

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)