Skip to content

Commit f83c655

Browse files
committed
kernel_cmdline: remove cfg(test) for require_value_* methods
This appears to have been accidentally added somewhere along the way, and I would like to use these in composefs-boot. Signed-off-by: John Eckersberg <[email protected]>
1 parent a48dad7 commit f83c655

File tree

1 file changed

+0
-2
lines changed
  • crates/kernel_cmdline/src

1 file changed

+0
-2
lines changed

crates/kernel_cmdline/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ impl<'a> Cmdline<'a> {
106106
/// Find the value of the kernel argument with the provided name, which must be present.
107107
///
108108
/// Otherwise the same as [`Self::value_of`].
109-
#[cfg(test)]
110109
pub fn require_value_of(&'a self, key: impl AsRef<[u8]>) -> Result<&'a [u8]> {
111110
let key = key.as_ref();
112111
self.value_of(key).ok_or_else(|| {
@@ -118,7 +117,6 @@ impl<'a> Cmdline<'a> {
118117
/// Find the value of the kernel argument with the provided name, which must be present.
119118
///
120119
/// Otherwise the same as [`Self::value_of`].
121-
#[cfg(test)]
122120
pub fn require_value_of_utf8(&'a self, key: &str) -> Result<&'a str> {
123121
self.value_of_utf8(key)?
124122
.ok_or_else(|| anyhow::anyhow!("Failed to find kernel argument '{key}'"))

0 commit comments

Comments
 (0)