Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Use transparent outside the enum
  • Loading branch information
cecton committed Jan 22, 2021
commit cb2cde970c6910d0efb15eaedfa940e7ec699fec
8 changes: 1 addition & 7 deletions client/tracing/src/logging/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,11 @@ pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
#[non_exhaustive]
#[error(transparent)]
pub enum Error {
#[error(transparent)]
IoError(#[from] io::Error),

#[error(transparent)]
SetGlobalDefaultError(#[from] tracing::subscriber::SetGlobalDefaultError),

#[error(transparent)]
DirectiveParseError(#[from] tracing_subscriber::filter::ParseError),

#[error(transparent)]
SetLoggerError(#[from] tracing_log::log_tracer::SetLoggerError),
}

Expand Down