Skip to content

Commit

Permalink
Include Rust 1.25.0 compatible implementations.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Dec 12, 2018
1 parent 1ff8f06 commit 03147a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/symbolize/dbghelp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@

#![allow(bad_style)]

#[cfg(feature = "std")]
use std::char;

use core::mem;
use core::slice;
#[cfg(not(feature = "std"))]
use core::char;

use winapi::ctypes::*;
Expand Down
4 changes: 2 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ impl<'a> BytesOrWideString<'a> {
use self::BytesOrWideString::*;

match self {
Bytes(slice) => String::from_utf8_lossy(slice),
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)),
}
}

Expand Down

0 comments on commit 03147a5

Please sign in to comment.