fix for FString
This commit is contained in:
parent
fad2175aa2
commit
7c0656c37f
|
@ -15,9 +15,7 @@ pub type FString = TArray<u16>;
|
|||
|
||||
impl ToString for FString {
|
||||
fn to_string(&self) -> String {
|
||||
widestring::U16CStr::from_slice(&self)
|
||||
.expect("invalid utf16 string")
|
||||
.to_string_lossy()
|
||||
widestring::U16Str::from_slice(&self).to_string_lossy()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue