Skip to content

Commit 4f472dc

Browse files
authored
Merge pull request #92 from rust-embedded/fix-ci
Fix new clippy lints
2 parents 84af2da + 5ca340f commit 4f472dc

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/llff.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ unsafe impl GlobalAlloc for Heap {
9898
#[cfg(feature = "allocator_api")]
9999
mod allocator_api {
100100
use super::*;
101-
use core::{
102-
alloc::{AllocError, Allocator, Layout},
103-
ptr::NonNull,
104-
};
101+
use core::alloc::{AllocError, Allocator};
105102

106103
unsafe impl Allocator for Heap {
107104
fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {

src/tlsf.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ unsafe impl GlobalAlloc for Heap {
8686
#[cfg(feature = "allocator_api")]
8787
mod allocator_api {
8888
use super::*;
89-
use core::{
90-
alloc::{AllocError, Allocator, Layout},
91-
ptr::NonNull,
92-
};
89+
use core::alloc::{AllocError, Allocator};
9390

9491
unsafe impl Allocator for Heap {
9592
fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> {

0 commit comments

Comments
 (0)