Skip to content

Commit 952af97

Browse files
committed
Remove unneeded unit return type
Clippy emits: warning: unneeded unit return type As suggested, remove the unneeded unit return type
1 parent a1cf394 commit 952af97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/interpreter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ where
565565
node: &'intp Miniscript<BitcoinKey, NoChecks>,
566566
n_evaluated: usize,
567567
n_satisfied: usize,
568-
) -> () {
568+
) {
569569
self.state.push(NodeEvaluationState {
570570
node,
571571
n_evaluated,

src/interpreter/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ impl<'txin> Stack<'txin> {
115115
}
116116

117117
/// Pushes an element onto the top of the stack
118-
pub fn push(&mut self, elem: Element<'txin>) -> () {
118+
pub fn push(&mut self, elem: Element<'txin>) {
119119
self.0.push(elem);
120120
}
121121

0 commit comments

Comments
 (0)