mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
chore: Fix nightly-only clippy lints
This commit is contained in:
6 files changed
+24
-33
No files matched your search
@@ -65,7 +65,7 @@ impl BoolExt for bool {
|
||||
fn into_option(self) -> Option<()> { self.then_some(()) }
|
||||
|
||||
#[inline]
|
||||
fn into_result(self) -> Result<(), ()> { self.ok_or(()) }
|
||||
fn into_result(self) -> Result<(), ()> { BoolExt::ok_or(self, ()) }
|
||||
|
||||
#[inline]
|
||||
fn map<T, F: FnOnce(Self) -> T>(self, f: F) -> T
|
||||
@@ -77,7 +77,7 @@ impl BoolExt for bool {
|
||||
|
||||
#[inline]
|
||||
fn map_ok_or<T, E, F: FnOnce() -> T>(self, err: E, f: F) -> Result<T, E> {
|
||||
self.ok_or(err).map(|()| f())
|
||||
BoolExt::ok_or(self, err).map(|()| f())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in new issue
Block a user