Remove an unnecessary .move_iter().collect()
This commit is contained in:
parent
e798b97ce9
commit
16351731ac
@ -142,7 +142,7 @@ pub mod win32 {
|
||||
}
|
||||
|
||||
pub fn as_utf16_p<T>(s: &str, f: |*u16| -> T) -> T {
|
||||
let mut t = s.to_utf16().move_iter().collect::<Vec<u16>>();
|
||||
let mut t = s.to_utf16();
|
||||
// Null terminate before passing on.
|
||||
t.push(0u16);
|
||||
f(t.as_ptr())
|
||||
|
Loading…
Reference in New Issue
Block a user