forked from M-Labs/nac3
1
0
Fork 0

fix compilation warning with new rustc

This commit is contained in:
Sebastien Bourdeauducq 2020-07-25 12:15:50 +08:00
parent e64f59723c
commit 630dcc274e
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ pub fn main_core1() {
Message::StartRequest => { Message::StartRequest => {
info!("kernel starting"); info!("kernel starting");
if let Some(kernel) = loaded_kernel.take() { if let Some(kernel) = loaded_kernel.take() {
core::mem::replace(&mut *KERNEL_CHANNEL_0TO1.lock(), Some(core1_rx)); *KERNEL_CHANNEL_0TO1.lock() = Some(core1_rx);
core::mem::replace(&mut *KERNEL_CHANNEL_1TO0.lock(), Some(core1_tx)); *KERNEL_CHANNEL_1TO0.lock() = Some(core1_tx);
unsafe { unsafe {
KERNEL_IMAGE = &kernel as *const KernelImage; KERNEL_IMAGE = &kernel as *const KernelImage;
kernel.exec(); kernel.exec();