Skip to content

Commit

Permalink
Fix alloc imports for old backtrace implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 17, 2024
1 parent 2b7d969 commit fe5fb2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backtrace.rs
Expand Up @@ -65,7 +65,8 @@ macro_rules! backtrace_if_absent {

#[cfg(all(not(std_backtrace), feature = "backtrace"))]
mod capture {
use alloc::borrow::Cow;
use alloc::borrow::{Cow, ToOwned as _};
use alloc::vec::Vec;
use backtrace::{BacktraceFmt, BytesOrWideString, Frame, PrintFmt, SymbolName};
use core::cell::UnsafeCell;
use core::fmt::{self, Debug, Display};
Expand Down

0 comments on commit fe5fb2f

Please sign in to comment.