Skip to content

Commit fcfd83e

Browse files
authored
Merge pull request #212 from luckysori/master
Replace empty array equality comparison with is_empty()
2 parents e04b409 + f43f7e6 commit fcfd83e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpreter/stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'txin> From<&'txin [u8]> for Element<'txin> {
4747
fn from(v: &'txin [u8]) -> Element<'txin> {
4848
if *v == [1] {
4949
Element::Satisfied
50-
} else if *v == [] {
50+
} else if v.is_empty() {
5151
Element::Dissatisfied
5252
} else {
5353
Element::Push(v)

0 commit comments

Comments
 (0)