use default derive helpers
This commit is contained in:
parent
efe1e30791
commit
8cfbbfe1b3
@ -36,9 +36,10 @@ pub struct OpenRequestHandle {
|
||||
}
|
||||
|
||||
/// Depending on the context, RPC errors require different handling.
|
||||
#[derive(Copy, Debug, Clone)]
|
||||
#[derive(Copy, Clone, Debug, Default)]
|
||||
pub enum RequestErrorHandler {
|
||||
/// Log at the trace level. Use when errors are expected.
|
||||
#[default]
|
||||
TraceLevel,
|
||||
/// Log at the debug level. Use when errors are expected.
|
||||
DebugLevel,
|
||||
@ -50,12 +51,6 @@ pub enum RequestErrorHandler {
|
||||
Save,
|
||||
}
|
||||
|
||||
impl Default for RequestErrorHandler {
|
||||
fn default() -> Self {
|
||||
Self::TraceLevel
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: second param could be skipped since we don't need it here
|
||||
#[derive(serde::Deserialize, serde::Serialize)]
|
||||
struct EthCallParams((EthCallFirstParams, Option<serde_json::Value>));
|
||||
|
Loading…
Reference in New Issue
Block a user