mirror of
https://github.com/edera-dev/sprout.git
synced 2026-05-07 17:00:17 +00:00
fmt
This commit is contained in:
@@ -26,7 +26,6 @@ const LINUX_CHAINLOAD_ACTION_PREFIX: &str = "linux-chainload-";
|
|||||||
/// The empty string represents the root of the filesystem.
|
/// The empty string represents the root of the filesystem.
|
||||||
const SCAN_LOCATIONS: &[&str] = &["\\boot", "\\"];
|
const SCAN_LOCATIONS: &[&str] = &["\\boot", "\\"];
|
||||||
|
|
||||||
|
|
||||||
/// This is really silly, but if what we are booting is the Canonical stubble stub,
|
/// This is really silly, but if what we are booting is the Canonical stubble stub,
|
||||||
/// there is a chance it will assert that the load options are non-empty.
|
/// there is a chance it will assert that the load options are non-empty.
|
||||||
/// Technically speaking, load options can be empty. However, it assumes load options
|
/// Technically speaking, load options can be empty. However, it assumes load options
|
||||||
|
|||||||
@@ -347,7 +347,6 @@ mod tests {
|
|||||||
assert!(config.ends_with('\n'));
|
assert!(config.ends_with('\n'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn kernel_prefix_exact_match() {
|
fn kernel_prefix_exact_match() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
@@ -381,7 +380,6 @@ mod tests {
|
|||||||
assert!(match_kernel_prefix("vmlinuz6.1", LINUX_KERNEL_PREFIXES).is_none());
|
assert!(match_kernel_prefix("vmlinuz6.1", LINUX_KERNEL_PREFIXES).is_none());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn initramfs_candidates_with_suffix() {
|
fn initramfs_candidates_with_suffix() {
|
||||||
let candidates: Vec<_> = initramfs_candidates("-6.1.0", LINUX_INITRAMFS_PREFIXES).collect();
|
let candidates: Vec<_> = initramfs_candidates("-6.1.0", LINUX_INITRAMFS_PREFIXES).collect();
|
||||||
|
|||||||
Reference in New Issue
Block a user