Skip to content

Commit 3365104

Browse files
committed
Copy pasta fix
1 parent aa1d153 commit 3365104

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,12 @@ pub fn init() -> Result<(), Error> {
163163
let heap_start = HEAP_MEMORY.as_mut_ptr() as *mut _;
164164
let heap_size = HEAP_MEMORY.len() * core::mem::size_of::<u32>();
165165
cortex_m::interrupt::free(|cs| {
166-
*LIBRARY_ALLOCATOR.borrow(cs).borrow_mut() =
167-
Some(Heap::new(heap_start, heap_size))
166+
*LIBRARY_ALLOCATOR.borrow(cs).borrow_mut() = Some(Heap::new(heap_start, heap_size))
168167
});
169168
}
170169

171170
// Tell nrf_modem what memory it can use.
172-
static PARAMS: grounded::uninit::GroundedCell<nrfxlib_sys::nrf_modem_init_params> =
171+
static PARAMS: grounded::uninit::GroundedCell<nrfxlib_sys::nrf_modem_init_params_t> =
173172
grounded::uninit::GroundedCell::uninit();
174173

175174
let params = sys::nrf_modem_init_params_t {

0 commit comments

Comments
 (0)