From ca7df013d5394914a4b544ff73a2629c20b4aa0d Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Wed, 6 Nov 2024 17:23:54 +0100 Subject: [PATCH] docs(option): fix docstring warnings Signed-off-by: Paul Spooren --- util/src/option.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/src/option.rs b/util/src/option.rs index 6b743df..62c0099 100644 --- a/util/src/option.rs +++ b/util/src/option.rs @@ -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 { Some(self) }