We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda293d commit e4f1d21Copy full SHA for e4f1d21
packages/vm/src/errors/backtrace.rs
@@ -4,12 +4,12 @@ use std::backtrace::Backtrace;
4
/// This wraps an actual backtrace to achieve two things:
5
/// - being able to fill this with a stub implementation in `no_std` environments
6
/// - being able to use this in conjunction with [`thiserror::Error`]
7
-pub struct BT(Backtrace);
+pub struct BT(Box<Backtrace>);
8
9
impl BT {
10
#[track_caller]
11
pub fn capture() -> Self {
12
- BT(Backtrace::capture())
+ BT(Box::new(Backtrace::capture()))
13
}
14
15
0 commit comments