From 973ec91f796a8fb3db51873ab16eda0e1b10cd85 Mon Sep 17 00:00:00 2001 From: Lokathor Date: Fri, 20 Sep 2019 11:05:33 -0600 Subject: [PATCH] typo, remove old imports --- src/allocation.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/allocation.rs b/src/allocation.rs index 35fa66c..644241a 100644 --- a/src/allocation.rs +++ b/src/allocation.rs @@ -4,8 +4,6 @@ use super::*; use alloc::{ alloc::{alloc_zeroed, Layout}, boxed::Box, - rc::Rc, - sync::Arc, vec::Vec, }; @@ -50,7 +48,7 @@ pub fn try_zeroed_box() -> Result, ()> { // we don't know what the error is because `alloc_zeroed` is a dumb API Err(()) } else { - Box::::from_raw(ptr) + Box::::from_raw(ptr as *mut T) } }