Skip to content

Commit 03147a5

Browse files
committed
Include Rust 1.25.0 compatible implementations.
Issue #135
1 parent 1ff8f06 commit 03147a5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/symbolize/dbghelp.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010

1111
#![allow(bad_style)]
1212

13+
#[cfg(feature = "std")]
14+
use std::char;
15+
1316
use core::mem;
1417
use core::slice;
18+
#[cfg(not(feature = "std"))]
1519
use core::char;
1620

1721
use winapi::ctypes::*;

src/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ impl<'a> BytesOrWideString<'a> {
3131
use self::BytesOrWideString::*;
3232

3333
match self {
34-
Bytes(slice) => String::from_utf8_lossy(slice),
35-
Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)),
34+
&Bytes(slice) => String::from_utf8_lossy(slice),
35+
&Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)),
3636
}
3737
}
3838

0 commit comments

Comments
 (0)