Skip to content

Commit 1ccf97b

Browse files
00xcandreeaflorescu
authored andcommitted
Use automatic links in generated docs
Fix several rustdoc bare URL warnings in the generated documentation. See-also: https://doc.rust-lang.org/rustdoc/lints.html#bare_urls Signed-off-by: Carlos López <carlos.lopez@suse.com>
1 parent 493e860 commit 1ccf97b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmdline/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl Cmdline {
324324

325325
/// Returns a C compatible representation of the command line
326326
/// The Linux kernel expects a null terminated cmdline according to the source:
327-
/// https://elixir.bootlin.com/linux/v5.10.139/source/kernel/params.c#L179
327+
/// <https://elixir.bootlin.com/linux/v5.10.139/source/kernel/params.c#L179>
328328
///
329329
/// To get bytes of the cmdline to be written in guest's memory (including the
330330
/// null terminator) from this representation, use CString::as_bytes_with_nul()

src/loader/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ pub struct KernelLoaderResult {
147147
/// blob and initrd will be loaded adjacent to kernel image.
148148
pub kernel_end: GuestUsize,
149149
/// Configuration for the VMM to use to fill zero page for bzImage direct boot.
150-
/// See https://www.kernel.org/doc/Documentation/x86/boot.txt.
150+
/// See <https://www.kernel.org/doc/Documentation/x86/boot.txt>.
151151
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
152152
pub setup_header: Option<bootparam::setup_header>,
153153
/// Availability of a PVH entry point. Only used for ELF boot, indicates whether the kernel
154154
/// supports the PVH boot protocol as described in:
155-
/// https://xenbits.xen.org/docs/unstable/misc/pvh.html
155+
/// <https://xenbits.xen.org/docs/unstable/misc/pvh.html>
156156
#[cfg(all(feature = "elf", any(target_arch = "x86", target_arch = "x86_64")))]
157157
pub pvh_boot_cap: elf::PvhBootCapability,
158158
}

0 commit comments

Comments
 (0)