Skip to content

Commit 6e4f86b

Browse files
committed
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy