Skip to content

Conversation

@jeckersb
Copy link
Collaborator

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]

@bootc-bot bootc-bot bot requested a review from cgwalters August 27, 2025 20:38
@jeckersb jeckersb force-pushed the untest-require_value branch from d7a9149 to f83c655 Compare August 27, 2025 20:39
@jeckersb jeckersb changed the title kernel_cmdline: remove cfg(test) for require_value_* methods` kernel_cmdline: remove cfg(test) for require_value_* methods Aug 27, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request makes the require_value_of and require_value_of_utf8 methods public by removing their #[cfg(test)] attributes. The change is correct and achieves its goal. My review includes suggestions to improve these newly-public functions by making their error handling more specific and enhancing their documentation. Since the functions are now part of the crate's public API, these improvements would increase robustness and usability for consumers.

@jeckersb jeckersb marked this pull request as draft August 27, 2025 21:10
This appears to have been accidentally added somewhere along the way,
and I would like to use these in composefs-boot.

Also fixes duplicate docstring copy/paste error on
`require_value_of_utf8`.

Signed-off-by: John Eckersberg <[email protected]>
@jeckersb jeckersb force-pushed the untest-require_value branch from f83c655 to 04860d5 Compare August 29, 2025 15:10
@jeckersb jeckersb marked this pull request as ready for review August 29, 2025 15:10
@jeckersb jeckersb enabled auto-merge August 29, 2025 15:11
@bootc-bot bootc-bot bot requested a review from cgwalters August 29, 2025 15:11
@jeckersb jeckersb merged commit 6bb4c71 into bootc-dev:main Aug 29, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants