From 5ca340f0d3245b7b27512342e287a592b539dad8 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sat, 24 Feb 2024 09:16:45 -0800 Subject: [PATCH] Fix new clippy lints --- src/llff.rs | 5 +---- src/tlsf.rs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/llff.rs b/src/llff.rs index d618a6a..a07e73c 100644 --- a/src/llff.rs +++ b/src/llff.rs @@ -98,10 +98,7 @@ unsafe impl GlobalAlloc for Heap { #[cfg(feature = "allocator_api")] mod allocator_api { use super::*; - use core::{ - alloc::{AllocError, Allocator, Layout}, - ptr::NonNull, - }; + use core::alloc::{AllocError, Allocator}; unsafe impl Allocator for Heap { fn allocate(&self, layout: Layout) -> Result, AllocError> { diff --git a/src/tlsf.rs b/src/tlsf.rs index 3a31cfd..75f5255 100644 --- a/src/tlsf.rs +++ b/src/tlsf.rs @@ -86,10 +86,7 @@ unsafe impl GlobalAlloc for Heap { #[cfg(feature = "allocator_api")] mod allocator_api { use super::*; - use core::{ - alloc::{AllocError, Allocator, Layout}, - ptr::NonNull, - }; + use core::alloc::{AllocError, Allocator}; unsafe impl Allocator for Heap { fn allocate(&self, layout: Layout) -> Result, AllocError> {