Remove use of soon-to-be-deprecated unstable feature

https://github.com/rust-lang/rust/issues/47336#issuecomment-586589016
This commit is contained in:
Simon Sapin 2020-04-15 15:10:11 +02:00
parent fbfe86fffe
commit 7861b0be79
2 changed files with 1 additions and 2 deletions

View file

@ -383,7 +383,7 @@ where
#[allow(unrooted_must_root)]
pub unsafe fn from_box(value: Box<T>) -> Self {
Self {
ptr: Box::into_raw_non_null(value),
ptr: Box::leak(value).into(),
}
}
}