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:
Ruoqing He 2025-06-06 13:08:30 +00:00
parent bb13b6696e
commit 5e80293bfc
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,7 @@
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
pub const BOOT_GDT_OFFSET: u64 = 0x500;

View File

@ -44,8 +44,7 @@ pub const MMIO_NOTIFY_REG_OFFSET: u32 = 0x50;
/// Currently hardcoded to 4K
pub const MMIO_DEFAULT_CFG_SIZE: u64 = 0x1000;
///
/// Control registers
// Control registers
// Magic value ("virt" string) - Read Only
pub const REG_MMIO_MAGIC_VALUE: u64 = 0x000;