fix(doc/extractors/filesystem-device-match): the extractor will error if no criteria is provided

This commit is contained in:
2025-10-28 00:19:38 -04:00
parent 852823e2eb
commit 86e08c2400

View File

@@ -19,8 +19,8 @@ use uefi_raw::Status;
/// on a particular filesystem. /// on a particular filesystem.
/// The fallback value can be used to provide a value if no match is found. /// The fallback value can be used to provide a value if no match is found.
/// ///
/// This function only requires all the criteria to match. If no criteria is provided, /// This extractor requires all the criteria to match. If no criteria is provided,
/// no filesystem is matched, and the fallback value is used if it is provided. /// an error is returned.
#[derive(Serialize, Deserialize, Debug, Default, Clone)] #[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct FilesystemDeviceMatchExtractor { pub struct FilesystemDeviceMatchExtractor {
/// Matches a filesystem that has the specified label. /// Matches a filesystem that has the specified label.