Skip to content

Commit f7e506f

Browse files
committed
feat(core): remove useless impls of the callback traits, add a useful one
1 parent e041be1 commit f7e506f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/core/mod.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,8 @@ pub trait UnlockCallback<InProgress> {
139139
fn complete(&mut self, in_progress: InProgress);
140140
}
141141

142-
impl LockCallback<()> for () {
143-
type Output = ();
144-
fn in_progress(self) -> (Self::Output, ()) {
145-
((), ())
142+
impl UnlockCallback<!> for () {
143+
fn complete(&mut self, in_progress: !) {
144+
match in_progress {}
146145
}
147-
fn complete(self) -> Self::Output {}
148-
}
149-
150-
impl UnlockCallback<()> for () {
151-
fn complete(&mut self, _in_progress: ()) {}
152146
}

0 commit comments

Comments
 (0)