Skip to content

Commit 1af5593

Browse files
author
Adam Meller
committed
Fix to tracepoints no_std per daniel5151's rec in issue 173
1 parent b12e32e commit 1af5593

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/target/ext/tracepoints.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ use crate::target::Target;
2020
use crate::target::TargetResult;
2121
use managed::ManagedSlice;
2222

23+
#[cfg(feature = "alloc")]
24+
use crate::alloc::borrow::ToOwned;
25+
2326
/// A tracepoint, identified by a unique number.
2427
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
2528
pub struct Tracepoint(pub usize);

0 commit comments

Comments
 (0)