From 630dcc274e1b68aa53fc524fd9153872da6be120 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 25 Jul 2020 12:15:50 +0800 Subject: [PATCH] fix compilation warning with new rustc --- src/runtime/src/kernel/core1.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/src/kernel/core1.rs b/src/runtime/src/kernel/core1.rs index 83dab17..000306f 100644 --- a/src/runtime/src/kernel/core1.rs +++ b/src/runtime/src/kernel/core1.rs @@ -160,8 +160,8 @@ pub fn main_core1() { Message::StartRequest => { info!("kernel starting"); if let Some(kernel) = loaded_kernel.take() { - core::mem::replace(&mut *KERNEL_CHANNEL_0TO1.lock(), Some(core1_rx)); - core::mem::replace(&mut *KERNEL_CHANNEL_1TO0.lock(), Some(core1_tx)); + *KERNEL_CHANNEL_0TO1.lock() = Some(core1_rx); + *KERNEL_CHANNEL_1TO0.lock() = Some(core1_tx); unsafe { KERNEL_IMAGE = &kernel as *const KernelImage; kernel.exec();