Skip to content

Commit ed29f12

Browse files
committed
Remove unnecessary return statements
Found by clippy. We don't need a `return` for the final statement.
1 parent 4e87e6f commit ed29f12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/schnorrsig.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ impl KeyPair {
185185
tweak.as_c_ptr(),
186186
);
187187

188-
return if err == 1 {
188+
if err == 1 {
189189
Ok(())
190190
} else {
191191
Err(Error::InvalidTweak)
192-
};
192+
}
193193
}
194194
}
195195
}
@@ -465,11 +465,11 @@ impl<C: Signing> Secp256k1<C> {
465465
pubkey.as_c_ptr(),
466466
);
467467

468-
return if ret == 1 {
468+
if ret == 1 {
469469
Ok(())
470470
} else {
471471
Err(Error::InvalidSignature)
472-
};
472+
}
473473
}
474474
}
475475

0 commit comments

Comments
 (0)