diff --git a/tests/test_option.rs b/tests/test_option.rs index 480170f..fbdbec0 100644 --- a/tests/test_option.rs +++ b/tests/test_option.rs @@ -7,46 +7,41 @@ pub mod structs { #[derive(Error, Debug)] #[error("...")] - #[allow(dead_code)] pub struct OptSourceNoBacktrace { #[source] - source: Option, + pub source: Option, } #[derive(Error, Debug)] #[error("...")] - #[allow(dead_code)] pub struct OptSourceAlwaysBacktrace { #[source] - source: Option, - backtrace: Backtrace, + pub source: Option, + pub backtrace: Backtrace, } #[derive(Error, Debug)] #[error("...")] - #[allow(dead_code)] pub struct NoSourceOptBacktrace { #[backtrace] - backtrace: Option, + pub backtrace: Option, } #[derive(Error, Debug)] #[error("...")] - #[allow(dead_code)] pub struct AlwaysSourceOptBacktrace { - source: anyhow::Error, + pub source: anyhow::Error, #[backtrace] - backtrace: Option, + pub backtrace: Option, } #[derive(Error, Debug)] #[error("...")] - #[allow(dead_code)] pub struct OptSourceOptBacktrace { #[source] - source: Option, + pub source: Option, #[backtrace] - backtrace: Option, + pub backtrace: Option, } }