Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
jschneider-bensch committed Oct 31, 2024
1 parent 71656dd commit 6673912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions libcrux-nrf52840/src/bin/mldsa.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![no_main]
#![no_std]

use cortex_m::peripheral::Peripherals;
use libcrux_nrf52840 as board; // global logger + panicking-behavior + memory layout

extern crate alloc;
Expand All @@ -15,15 +14,15 @@ static HEAP: Heap = Heap::empty();
#[cortex_m_rt::entry]
fn main() -> ! {
use libcrux_iot_testutil::*;

// Initialize the allocator BEFORE you use it
{
use core::mem::MaybeUninit;
const HEAP_SIZE: usize = 1024;
static mut HEAP_MEM: [MaybeUninit<u8>; HEAP_SIZE] = [MaybeUninit::uninit(); HEAP_SIZE];
unsafe { HEAP.init(addr_of_mut!(HEAP_MEM) as usize, HEAP_SIZE) }
}

// set up the test config
let test_config = TestConfig {
platform: platform::CortexM,
Expand Down
1 change: 0 additions & 1 deletion libcrux-nrf52840/src/bin/mlkem.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![no_main]
#![no_std]

use cortex_m::peripheral::Peripherals;
use libcrux_nrf52840 as board; // global logger + panicking-behavior + memory layout

extern crate alloc;
Expand Down

0 comments on commit 6673912

Please sign in to comment.