Skip to content

Commit

Permalink
modify default variant
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Jun 6, 2023
1 parent 2dfa679 commit 58675b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion program-runtime/src/loaded_programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ pub trait WorkingSlot {
fn is_ancestor(&self, other: Slot) -> bool;
}

#[derive(Default)]
pub enum LoadedProgramType {
/// Tombstone for undeployed, closed or unloadable programs
FailedVerification(Arc<BuiltinProgram<InvokeContext<'static>>>),
#[default]
Closed,
DelayVisibility,
/// Successfully verified but not currently compiled, used to track usage statistics when a compiled program is evicted from memory.
Expand Down Expand Up @@ -91,7 +93,7 @@ impl Debug for LoadedProgramType {
}
}

#[derive(Debug)]
#[derive(Debug, Default)]
pub struct LoadedProgram {
/// The program of this entry
pub program: LoadedProgramType,
Expand Down

0 comments on commit 58675b8

Please sign in to comment.