Skip to content

Commit

Permalink
Import from alloc not std, where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Feb 19, 2024
1 parent f885a13 commit 6e4f86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ macro_rules! backtrace_if_absent {

#[cfg(all(not(std_backtrace), feature = "backtrace"))]
mod capture {
use alloc::borrow::Cow;
use backtrace::{BacktraceFmt, BytesOrWideString, Frame, PrintFmt, SymbolName};
use core::cell::UnsafeCell;
use core::fmt::{self, Debug, Display};
use core::sync::atomic::{AtomicUsize, Ordering};
use std::borrow::Cow;
use std::env;
use std::path::{self, Path, PathBuf};
use std::sync::Once;
Expand Down
2 changes: 1 addition & 1 deletion src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use self::ChainState::*;
use crate::StdError;

#[cfg(feature = "std")]
use std::vec;
use alloc::vec;

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

0 comments on commit 6e4f86b

Please sign in to comment.