Remove manual implementation of ok
New rustc nightly gives error: manual implementation of `ok`. Remove it.
This commit is contained in:
parent
30132c56bb
commit
55ab2f34a7
|
@ -47,12 +47,7 @@ impl Instruction<'_> {
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Instruction::PushBytes(bytes) => {
|
Instruction::PushBytes(bytes) => super::read_scriptint_non_minimal(bytes.as_bytes()).ok(),
|
||||||
match super::read_scriptint_non_minimal(bytes.as_bytes()) {
|
|
||||||
Ok(v) => Some(v),
|
|
||||||
_ => None,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,10 +73,7 @@ impl Instruction<'_> {
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Instruction::PushBytes(bytes) => match bytes.read_scriptint() {
|
Instruction::PushBytes(bytes) => bytes.read_scriptint().ok(),
|
||||||
Ok(v) => Some(v),
|
|
||||||
_ => None,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue