From b9dfd2ceef09012a1917eab192b2a90a5372d349 Mon Sep 17 00:00:00 2001 From: Botahamec Date: Tue, 8 Aug 2023 18:13:54 -0400 Subject: Add an unexpect fn for Result --- src/result.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/result.rs b/src/result.rs index 987fc3a..7afceed 100644 --- a/src/result.rs +++ b/src/result.rs @@ -65,6 +65,12 @@ impl ResultErrorExt for Result { } } +impl ResultErrorExt for Result { + fn unexpect(self) -> Self { + self + } +} + /// Provides [`Result::unexpect_msg`] /// /// [`Result::unexpect_msg`]: `ResultMsgExt::unexpect_msg` -- cgit v1.2.3