Suggested default impl for the new *Stacks

In fact they are currently `Default` (can't use it directly due to
`const`)

Maybe an allow is more appriate for stability but seems benign from my
viewpoint
This commit is contained in:
sholderbach 2024-07-25 21:43:37 +02:00
parent d2bf82d22b
commit e1e32ea8ea
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ impl Argument {
}
/// Stores the argument context for calls in IR evaluation.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct ArgumentStack {
arguments: Vec<Argument>,
}

View File

@ -10,7 +10,7 @@ pub struct ErrorHandler {
}
/// Keeps track of error handlers pushed during evaluation of an IR block.
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
pub struct ErrorHandlerStack {
handlers: Vec<ErrorHandler>,
}