From dfe6d121878e38bc1fa34a7994a44a18e096a86e Mon Sep 17 00:00:00 2001 From: Lyude Paul Date: Thu, 11 Jul 2024 09:31:46 -0400 Subject: [PATCH] nvim/ext: Be nicer in ok_and_report() Fixes #112 --- src/nvim/ext.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ext.rs b/src/nvim/ext.rs index 7291eff4..c070be5c 100644 --- a/src/nvim/ext.rs +++ b/src/nvim/ext.rs @@ -50,7 +50,7 @@ impl ErrorReport for Result { fn ok_and_report(self) -> Option { self.report_err(); - Some(self.unwrap()) + self.ok() } }