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:
Jamil Lambert, PhD 2025-03-20 14:59:12 +00:00
parent d222fdd879
commit 6dfa3d8f4d
No known key found for this signature in database
GPG Key ID: 54DC29234AB5D2C0
1 changed files with 1 additions and 1 deletions

View File

@ -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]);