Skip to content

Commit

Permalink
nvim/ext: Be nicer in ok_and_report()
Browse files Browse the repository at this point in the history
Fixes #112
  • Loading branch information
Lyude committed Jul 11, 2024
1 parent 988a875 commit 43a10c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<T> ErrorReport<T> for Result<T, SessionError> {

fn ok_and_report(self) -> Option<T> {
self.report_err();
Some(self.unwrap())
self.ok()
}
}

Expand Down

0 comments on commit 43a10c7

Please sign in to comment.