Skip to content

Commit 6e4f86b

Browse files
committedFeb 19, 2024··
Import from alloc not std, where possible
1 parent f885a13 commit 6e4f86b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/backtrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ macro_rules! backtrace_if_absent {
6565

6666
#[cfg(all(not(std_backtrace), feature = "backtrace"))]
6767
mod capture {
68+
use alloc::borrow::Cow;
6869
use backtrace::{BacktraceFmt, BytesOrWideString, Frame, PrintFmt, SymbolName};
6970
use core::cell::UnsafeCell;
7071
use core::fmt::{self, Debug, Display};
7172
use core::sync::atomic::{AtomicUsize, Ordering};
72-
use std::borrow::Cow;
7373
use std::env;
7474
use std::path::{self, Path, PathBuf};
7575
use std::sync::Once;

‎src/chain.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use self::ChainState::*;
22
use crate::StdError;
33

44
#[cfg(feature = "std")]
5-
use std::vec;
5+
use alloc::vec;
66

77
#[cfg(feature = "std")]
88
pub(crate) use crate::Chain;

0 commit comments

Comments
 (0)
Please sign in to comment.