docs(option): fix docstring warnings

Signed-off-by: Paul Spooren <mail@aparcar.org>
This commit is contained in:
Paul Spooren
2024-11-06 17:23:54 +01:00
parent 1209d68718
commit ca7df013d5

View File

@@ -1,4 +1,6 @@
/// A helper trait for turning any type value into `Some(value)`.
pub trait SomeExt: Sized {
/// Wraps the calling value in `Some()`.
fn some(self) -> Option<Self> {
Some(self)
}