Skip to main content

codama_nodes/shared/
instruction_lifecycle.rs

1use crate::InstructionLifecycle;
2
3// The spec doesn't carry a notion of "default variant", so the
4// generated `InstructionLifecycle` enum has no `#[derive(Default)]`.
5// The default member is a Rust-side choice and lives here.
6#[allow(clippy::derivable_impls)]
7impl Default for InstructionLifecycle {
8    fn default() -> Self {
9        InstructionLifecycle::Live
10    }
11}