Skip to content

Commit e4f1d21

Browse files
committed
Box error for size reduction
1 parent fda293d commit e4f1d21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vm/src/errors/backtrace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ use std::backtrace::Backtrace;
44
/// This wraps an actual backtrace to achieve two things:
55
/// - being able to fill this with a stub implementation in `no_std` environments
66
/// - being able to use this in conjunction with [`thiserror::Error`]
7-
pub struct BT(Backtrace);
7+
pub struct BT(Box<Backtrace>);
88

99
impl BT {
1010
#[track_caller]
1111
pub fn capture() -> Self {
12-
BT(Backtrace::capture())
12+
BT(Box::new(Backtrace::capture()))
1313
}
1414
}
1515

0 commit comments

Comments
 (0)