Skip to content
Myr

Import from alloc not std, where possible

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent f885a13 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:src/backtrace.rs+1 added-1 removed
63 unmodified lines
64}6566#[cfg(all(not(std_backtrace), feature = "backtrace"))]67mod capture {68 use alloc::borrow::Cow;69 use backtrace::{BacktraceFmt, BytesOrWideString, Frame, PrintFmt, SymbolName};70 use core::cell::UnsafeCell;71 use core::fmt::{self, Debug, Display};72 use core::sync::atomic::{AtomicUsize, Ordering};72 use std::borrow::Cow;73 use std::env;74 use std::path::{self, Path, PathBuf};75 use std::sync::Once;76
329 unmodified lines
modified:src/chain.rs+1 added-1 removed
1use self::ChainState::*;2use crate::StdError;34#[cfg(feature = "std")]5use std::vec;5use alloc::vec;67#[cfg(feature = "std")]8pub(crate) use crate::Chain;9
93 unmodified lines