mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 08:26:30 +00:00
Fix multiple documentation issues concerned by clippy
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4ba60271b1
commit
05533d7afd
@ -15,6 +15,7 @@
|
||||
//! - a parent page table node,
|
||||
//! - or a handle to a page table node,
|
||||
//! - or a processor.
|
||||
//!
|
||||
//! This is implemented by using a reference counter in the frame metadata. If the above
|
||||
//! conditions are not met, the page table node is ensured to be freed upon dropping the last
|
||||
//! reference.
|
||||
|
@ -12,7 +12,8 @@
|
||||
//! By all means, ktest is an individule crate that only requires:
|
||||
//! - a custom linker script section `.ktest_array`,
|
||||
//! - and an alloc implementation.
|
||||
//! to work. And the frame happens to provide both of them. Thus, any crates depending
|
||||
//!
|
||||
//! And the frame happens to provide both of them. Thus, any crates depending
|
||||
//! on the frame can use ktest without any extra dependency.
|
||||
//!
|
||||
//! ## Usage
|
||||
|
@ -8,6 +8,7 @@
|
||||
//! - Level-3: Page Directory Pointer Table (PDPT);
|
||||
//! - Level-2: Page Directory (PD);
|
||||
//! - Level-1: Page Table (PT).
|
||||
//!
|
||||
//! We sometimes use "level-n" page table to refer to the page table described
|
||||
//! above, avoiding the use of complicated names in the Intel manual.
|
||||
|
||||
|
@ -11,9 +11,9 @@ use crate::prelude::*;
|
||||
/// Here is a concise description of Auxiliary Vector from GNU's manual:
|
||||
///
|
||||
/// > When a program is executed, it receives information from the operating system
|
||||
/// about the environment in which it is operating. The form of this information
|
||||
/// is a table of key-value pairs, where the keys are from the set of ‘AT_’
|
||||
/// values in elf.h.
|
||||
/// > about the environment in which it is operating. The form of this information
|
||||
/// > is a table of key-value pairs, where the keys are from the set of ‘AT_’
|
||||
/// > values in elf.h.
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||
|
@ -1,7 +1,6 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
//!This crate defines the component system related macros.
|
||||
//!
|
||||
|
||||
#![feature(proc_macro_diagnostic)]
|
||||
#![allow(dead_code)]
|
||||
|
Reference in New Issue
Block a user