We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b33f67 commit c46567bCopy full SHA for c46567b
crates/cli/src/handler.rs
@@ -3,20 +3,15 @@ use itertools::Itertools;
3
use std::{error::Error, fmt};
4
5
/// A custom context type for Foundry specific error reporting via `eyre`.
6
+#[derive(Default)]
7
pub struct Handler {
8
debug_handler: Option<Box<dyn EyreHandler>>,
9
}
10
-impl Default for Handler {
11
- fn default() -> Self {
12
- Self::new()
13
- }
14
-}
15
-
16
impl Handler {
17
/// Create a new instance of the `Handler`.
18
pub fn new() -> Self {
19
- Self { debug_handler: None }
+ Self::default()
20
21
22
/// Override the debug handler with a custom one.
0 commit comments