Skip to content

Commit

Permalink
Merge pull request #92 from rust-embedded/fix-ci
Browse files Browse the repository at this point in the history
Fix new clippy lints
  • Loading branch information
reitermarkus authored Feb 24, 2024
2 parents 84af2da + 5ca340f commit 4f472dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/llff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NonNull<[u8]>, AllocError> {
Expand Down
5 changes: 1 addition & 4 deletions src/tlsf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<NonNull<[u8]>, AllocError> {
Expand Down

0 comments on commit 4f472dc

Please sign in to comment.