Skip to content

clippy: resolve result_unit_err#235

Merged
197g merged 1 commit into197g:masterfrom
kodebooth:result-unit-error
Jan 28, 2026
Merged

clippy: resolve result_unit_err#235
197g merged 1 commit into197g:masterfrom
kodebooth:result-unit-error

Conversation

@ekohandel
Copy link
Contributor

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

@ekohandel ekohandel mentioned this pull request Jan 28, 2026
62 tasks
Example warning resolved by this change:

warning: this returns a `Result<_, ()>`
  --> oxide-auth/src/primitives/issuer.rs:28:5
   |
28 |     fn refresh(&mut self, _refresh: &str, _grant: Grant) -> Result<RefreshedToken, ()>;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: use a custom `Error` type instead
   = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#result_unit_err

Link: https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#result_unit_err
Signed-off-by: Abe Kohandel <abe@kodebooth.com>
Copy link
Owner

@197g 197g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright. I suppose it's time for that version bump.

@197g 197g merged commit 4e6c292 into 197g:master Jan 28, 2026
11 of 16 checks passed
@ekohandel ekohandel deleted the result-unit-error branch January 28, 2026 17:30
ekohandel added a commit to kodebooth/oxide-auth that referenced this pull request Jan 31, 2026
As part of the changes in 197g#235, doc tests for oxide-auth crate were left
out. This change addresses those errors.

Fixes: 71dd075 ("clippy: resolve result_unit_err")
Signed-off-by: Abe Kohandel <abe@kodebooth.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants