Skip to content
Myr

Avoid unused import when building without backtrace

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent d175627 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/wrapper.rs+1 added-2 removed
1use crate::backtrace::Backtrace;1use std::error::Error as StdError;2use std::fmt::{self, Debug, Display};34#[repr(transparent)]
58 unmodified lines
63}6465impl StdError for BoxedError {66 #[cfg(backtrace)]68 fn backtrace(&self) -> Option<&Backtrace> {67 fn backtrace(&self) -> Option<&crate::backtrace::Backtrace> {68 self.0.backtrace()69 }7071 fn source(&self) -> Option<&(dyn StdError + 'static)> {
3 unmodified lines