mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 19:47:53 +00:00
dragonball: Fix clippy empty_line_after_doc_comments
Fix `empty_line_after_doc_comments` clippy warning as suggested by rust 1.85.1. ```console error: empty line after doc comment --> dbs_boot/src/x86_64/layout.rs:11:1 | 11 | / /// Magic addresses externally used to lay out x86_64 VMs. 12 | | | |_^ 13 | /// Global Descriptor Table Offset 14 | pub const BOOT_GDT_OFFSET: u64 = 0x500; | ------------------------------ the comment documents this constant | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments = note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_doc_comments)]` = help: if the empty line is unintentional remove it help: if the documentation should include the empty line include it in the comment | 12 | /// | ``` Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
This commit is contained in:
parent
bb13b6696e
commit
5e80293bfc
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
||||||
/// Magic addresses externally used to lay out x86_64 VMs.
|
// Magic addresses externally used to lay out x86_64 VMs.
|
||||||
|
|
||||||
/// Global Descriptor Table Offset
|
/// Global Descriptor Table Offset
|
||||||
pub const BOOT_GDT_OFFSET: u64 = 0x500;
|
pub const BOOT_GDT_OFFSET: u64 = 0x500;
|
||||||
|
@ -44,8 +44,7 @@ pub const MMIO_NOTIFY_REG_OFFSET: u32 = 0x50;
|
|||||||
/// Currently hardcoded to 4K
|
/// Currently hardcoded to 4K
|
||||||
pub const MMIO_DEFAULT_CFG_SIZE: u64 = 0x1000;
|
pub const MMIO_DEFAULT_CFG_SIZE: u64 = 0x1000;
|
||||||
|
|
||||||
///
|
// Control registers
|
||||||
/// Control registers
|
|
||||||
|
|
||||||
// Magic value ("virt" string) - Read Only
|
// Magic value ("virt" string) - Read Only
|
||||||
pub const REG_MMIO_MAGIC_VALUE: u64 = 0x000;
|
pub const REG_MMIO_MAGIC_VALUE: u64 = 0x000;
|
||||||
|
Loading…
Reference in New Issue
Block a user