Skip to content

Commit

Permalink
fix: cargo clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 26, 2023
1 parent 07b6d52 commit 7a90e59
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion api/arceos_posix_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#![cfg_attr(all(not(test), not(doc)), no_std)]
#![feature(ip_in_core)]
#![feature(result_option_inspect)]
#![feature(doc_cfg)]
#![feature(doc_auto_cfg)]
#![allow(clippy::missing_safety_doc)]
Expand Down
1 change: 0 additions & 1 deletion crates/allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
//! - [`IdAllocator`]: Used to allocate unique IDs.
#![no_std]
#![feature(result_option_inspect)]
#![cfg_attr(feature = "allocator_api", feature(allocator_api))]

#[cfg(feature = "bitmap")]
Expand Down
4 changes: 2 additions & 2 deletions crates/driver_virtio/src/blk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ impl<H: Hal, T: Transport> BlockDriverOps for VirtIoBlkDev<H, T> {

fn read_block(&mut self, block_id: u64, buf: &mut [u8]) -> DevResult {
self.inner
.read_block(block_id as _, buf)
.read_blocks(block_id as _, buf)
.map_err(as_dev_err)
}

fn write_block(&mut self, block_id: u64, buf: &[u8]) -> DevResult {
self.inner
.write_block(block_id as _, buf)
.write_blocks(block_id as _, buf)
.map_err(as_dev_err)
}

Expand Down
2 changes: 1 addition & 1 deletion crates/driver_virtio/src/gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use virtio_drivers::{device::gpu::VirtIOGpu as InnerDev, transport::Transport, H

/// The VirtIO GPU device driver.
pub struct VirtIoGpuDev<H: Hal, T: Transport> {
inner: InnerDev<'static, H, T>,
inner: InnerDev<H, T>,
info: DisplayInfo,
}

Expand Down
1 change: 0 additions & 1 deletion crates/flatten_objects/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
//! ```
#![no_std]
#![feature(const_maybe_uninit_zeroed)]
#![feature(maybe_uninit_uninit_array)]
#![feature(const_maybe_uninit_uninit_array)]

Expand Down
1 change: 0 additions & 1 deletion crates/page_table/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#![no_std]
#![feature(const_trait_impl)]
#![feature(result_option_inspect)]
#![feature(doc_auto_cfg)]

#[macro_use]
Expand Down
1 change: 0 additions & 1 deletion modules/axhal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#![no_std]
#![feature(asm_const)]
#![feature(naked_functions)]
#![feature(const_maybe_uninit_zeroed)]
#![feature(const_option)]
#![feature(doc_auto_cfg)]

Expand Down

0 comments on commit 7a90e59

Please sign in to comment.