Add Default impl to Script
This commit is contained in:
parent
6e6da2a756
commit
4ba533514e
|
@ -1250,6 +1250,10 @@ impl Script {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Script {
|
||||||
|
fn default() -> Script { Script(ThinVec::new()) }
|
||||||
|
}
|
||||||
|
|
||||||
// User-facing serialization
|
// User-facing serialization
|
||||||
impl json::ToJson for Script {
|
impl json::ToJson for Script {
|
||||||
// TODO: put this in a struct alongside an opcode decode
|
// TODO: put this in a struct alongside an opcode decode
|
||||||
|
|
Loading…
Reference in New Issue