Skip to content

Commit 1257bb0

Browse files
committed
Always keep backtrace stub
1 parent 611178a commit 1257bb0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/std/src/errors/backtrace.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,15 @@ impl Display for BT {
4040
}
4141
}
4242

43-
#[cfg(not(feature = "std"))]
43+
#[allow(unused)]
4444
struct Stub;
4545

46-
#[cfg(not(feature = "std"))]
4746
impl Debug for Stub {
4847
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
4948
write!(f, "<disabled>")
5049
}
5150
}
5251

53-
#[cfg(not(feature = "std"))]
5452
impl Display for Stub {
5553
fn fmt(&self, f: &mut Formatter<'_>) -> Result {
5654
write!(f, "<disabled>")

0 commit comments

Comments
 (0)