From a6abd5a7de296df7008af0c47b517395e3285d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 2 Nov 2023 11:15:33 +0100 Subject: [PATCH 1/3] fix(virtio-net): clippy::get_first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/drivers/net/virtio_net.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/net/virtio_net.rs b/src/drivers/net/virtio_net.rs index 2e2115c10f..864206536e 100644 --- a/src/drivers/net/virtio_net.rs +++ b/src/drivers/net/virtio_net.rs @@ -336,7 +336,7 @@ impl TxQueues { self.vqs.push(Rc::new(vq)); if self.vqs.len() == 1 { // Unwrapping is safe, as one virtq will be definitely in the vector. - let vq = self.vqs.get(0).unwrap(); + let vq = self.vqs.first().unwrap(); if dev_cfg .features From 921bf1000ae95e28122982281fb567ab741eb65e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 2 Nov 2023 11:21:21 +0100 Subject: [PATCH 2/3] fix(aarch64): unused_imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- src/arch/aarch64/kernel/mod.rs | 1 - src/arch/mod.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch/aarch64/kernel/mod.rs b/src/arch/aarch64/kernel/mod.rs index 4399c3fd78..3b48821c3a 100644 --- a/src/arch/aarch64/kernel/mod.rs +++ b/src/arch/aarch64/kernel/mod.rs @@ -20,7 +20,6 @@ use hermit_entry::boot_info::{BootInfo, RawBootInfo}; use crate::arch::aarch64::kernel::core_local::*; use crate::arch::aarch64::kernel::serial::SerialPort; -pub use crate::arch::aarch64::kernel::systemtime::get_boot_time; use crate::arch::aarch64::mm::{PhysAddr, VirtAddr}; use crate::env; diff --git a/src/arch/mod.rs b/src/arch/mod.rs index 8d81850e91..369bcf2931 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -17,8 +17,9 @@ cfg_if::cfg_if! { pub use self::aarch64::kernel::scheduler; pub use self::aarch64::kernel::switch; pub use self::aarch64::kernel::systemtime::get_boot_time; + #[cfg(feature = "smp")] + pub use self::aarch64::kernel::application_processor_init; pub use self::aarch64::kernel::{ - application_processor_init, boot_application_processors, get_processor_count, message_output_init, From 216346373d0f69a0c60201c9b59b7abd91b84be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Thu, 2 Nov 2023 11:09:09 +0100 Subject: [PATCH 3/3] chore: upgrade to nightly-2023-11-01 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- rust-toolchain.toml | 2 +- src/lib.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 3ec268466d..543504edac 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,5 +1,5 @@ [toolchain] -channel = "nightly-2023-10-15" +channel = "nightly-2023-11-01" components = [ "llvm-tools", "rust-src", diff --git a/src/lib.rs b/src/lib.rs index e8c00d5fec..e3ef209452 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -16,7 +16,6 @@ #![feature(maybe_uninit_slice)] #![feature(naked_functions)] #![feature(noop_waker)] -#![feature(pointer_byte_offsets)] #![feature(pointer_is_aligned)] #![feature(ptr_from_ref)] #![feature(slice_from_ptr_range)]