We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff8f06 commit 03147a5Copy full SHA for 03147a5
src/symbolize/dbghelp.rs
@@ -10,8 +10,12 @@
10
11
#![allow(bad_style)]
12
13
+#[cfg(feature = "std")]
14
+use std::char;
15
+
16
use core::mem;
17
use core::slice;
18
+#[cfg(not(feature = "std"))]
19
use core::char;
20
21
use winapi::ctypes::*;
src/types.rs
@@ -31,8 +31,8 @@ impl<'a> BytesOrWideString<'a> {
31
use self::BytesOrWideString::*;
32
33
match self {
34
- Bytes(slice) => String::from_utf8_lossy(slice),
35
- Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)),
+ &Bytes(slice) => String::from_utf8_lossy(slice),
+ &Wide(wide) => Cow::Owned(String::from_utf16_lossy(wide)),
36
}
37
38
0 commit comments