Skip to content

Commit d50f22a

Browse files
authored
chore(docs): fix all rustdoc warnings (#54)
1 parent a8a3774 commit d50f22a

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ version = "1.3.0"
4848
default-features = false
4949

5050
[workspace.dependencies.toml]
51-
version = "0.9.10+spec-1.1.0"
51+
version = "0.9.10"
5252
default-features = false
5353
features = ["serde", "parse"]
5454

crates/boot/src/autoconfigure/linux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ const INITRAMFS_PREFIXES: &[&str] = &["initramfs", "initrd", "initrd.img"];
3737
/// and then uses that code improperly by asserting that the pointer is non-null.
3838
/// To give a good user experience, we place a placeholder value here to ensure it's non-empty.
3939
/// For stubble, this code ensures the command line pointer becomes null:
40-
/// https://github.com/ubuntu/stubble/blob/e56643979addfb98982266018e08921c07424a0c/stub.c#L61-L64
40+
/// <https://github.com/ubuntu/stubble/blob/e56643979addfb98982266018e08921c07424a0c/stub.c#L61-L64>
4141
/// Then this code asserts on it, stopping the boot process:
42-
/// https://github.com/ubuntu/stubble/blob/e56643979addfb98982266018e08921c07424a0c/stub.c#L27
42+
/// <https://github.com/ubuntu/stubble/blob/e56643979addfb98982266018e08921c07424a0c/stub.c#L27>
4343
const DEFAULT_LINUX_OPTIONS: &str = "placeholder";
4444

4545
/// Pair of kernel and initramfs.

crates/boot/src/generators/bls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn quirk_initrd_remove_tuned(input: String) -> String {
2626
}
2727

2828
/// Sorts two entries according to the BLS sort system.
29-
/// Reference: https://uapi-group.org/specifications/specs/boot_loader_specification/#sorting
29+
/// Reference: <https://uapi-group.org/specifications/specs/boot_loader_specification/#sorting>
3030
fn sort_entries(a: &(BlsEntry, BootableEntry), b: &(BlsEntry, BootableEntry)) -> Ordering {
3131
// Grab the components of both entries.
3232
let (a_bls, a_boot) = a;

crates/boot/src/phases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use anyhow::{Context, Result};
66
use edera_sprout_config::phases::PhaseConfiguration;
77

88
/// Executes the specified [phase] of the boot process.
9-
/// The value [phase] should be a reference of a specific phase in the [PhasesConfiguration].
9+
/// The value [phase] should be a reference of a specific phase in the `PhasesConfiguration`.
1010
/// Any error from the actions is propagated into the [Result] and will interrupt further
1111
/// execution of phase actions.
1212
pub fn phase(context: Rc<SproutContext>, phase: &[PhaseConfiguration]) -> Result<()> {

crates/boot/src/utils/vercmp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub fn compare_versions_optional(a: Option<&str>, b: Option<&str>) -> Ordering {
3333
}
3434

3535
/// Compares two strings using the BLS version comparison specification.
36-
/// See: https://uapi-group.org/specifications/specs/version_format_specification/
36+
/// See: <https://uapi-group.org/specifications/specs/version_format_specification/>
3737
pub fn compare_versions(a: &str, b: &str) -> Ordering {
3838
// Acquire a peekable iterator for each string.
3939
let mut a_chars = a.chars().peekable();

crates/build/src/sbat.template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/// Define the SBAT attestation by including the sbat.csv file.
2-
/// See this document for more details: https://github.com/rhboot/shim/blob/main/SBAT.md
2+
/// See this document for more details: <https://github.com/rhboot/shim/blob/main/SBAT.md>
33
/// NOTE: This data must be aligned by 512 bytes.
44
#[used]
55
#[unsafe(link_section = ".sbat")]

crates/config/src/actions/chainload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct ChainloadConfiguration {
1313
#[serde(default)]
1414
pub options: Vec<String>,
1515
/// An optional path to a Linux initrd.
16-
/// This uses the [LINUX_EFI_INITRD_MEDIA_GUID] mechanism to load the initrd into the EFI stack.
16+
/// This uses the `LINUX_EFI_INITRD_MEDIA_GUID` mechanism to load the initrd into the EFI stack.
1717
/// For Linux, you can also use initrd=\path\to\initrd as an option, but this option is
1818
/// generally better and safer as it can support additional load options in the future.
1919
#[serde(default, rename = "linux-initrd")]

crates/eficore/src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
//! Sprout EFI Core.
2-
//! This crate provides tools for working with the EFI environment.
1+
//! Sprout EFI core.
2+
//! This crate provides core EFI functionality for Sprout.
3+
4+
// For some reason this triggers, and I can't figure out why.
5+
#![allow(rustdoc::bare_urls)]
36
#![no_std]
47
extern crate alloc;
58

crates/eficore/src/media_loader.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ struct MediaLoaderProtocol {
3434
}
3535

3636
/// Represents a media loader which has been registered in the UEFI stack.
37-
/// You MUST call [MediaLoaderHandle::unregister] when ready to unregister.
38-
/// [Drop] is not implemented for this type.
37+
/// Calling `drop` on this handle will unregister the media loader.
3938
pub struct MediaLoaderHandle {
4039
/// The handle of the media loader in the UEFI stack.
4140
handle: Handle,

0 commit comments

Comments
 (0)