Update test to increase coverage
The `default` implementation is missed in the test coverage. Change calling `new()` to using the `default` implementation, which then calls `new()` anyway.
This commit is contained in:
parent
d222fdd879
commit
6dfa3d8f4d
|
@ -195,7 +195,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn script_is_empty() {
|
||||
let script = Script::new();
|
||||
let script: &Script = Default::default();
|
||||
assert!(script.is_empty());
|
||||
|
||||
let script = Script::from_bytes(&[1, 2, 3]);
|
||||
|
|
Loading…
Reference in New Issue