Skip to content

Commit 6088c25

Browse files
committed
Use {} instead of explicit return
Clippy emits: warning: unneeded `return` statement It is more conventional to use `{}` and not an explicit `return` statement.
1 parent 06c9617 commit 6088c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miniscript/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ mod tests {
606606
assert_eq!(ms.ty.mall.safe, need_sig);
607607
assert_eq!(ms.ext.ops.op_count().unwrap(), ops);
608608
}
609-
(Err(_), false) => return,
609+
(Err(_), false) => {}
610610
_ => unreachable!(),
611611
}
612612
}

0 commit comments

Comments
 (0)