aboutsummaryrefslogtreecommitdiffstats
path: root/src/win32/mod.rs
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-10-11 17:58:17 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-10-11 17:58:17 +0200
commitcb32e64b72e9342d30cde694ab25234a263cab59 (patch)
tree83b4b2aa81928138d6e91102f602fdbd9fcaf04b /src/win32/mod.rs
parent8e8549b4ac451d60bc67599e7336ead8a3b4a6ba (diff)
downloadglutin-cb32e64b72e9342d30cde694ab25234a263cab59.tar.gz
glutin-cb32e64b72e9342d30cde694ab25234a263cab59.zip
Fix warnings while compiling for win32
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r--src/win32/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index af28011..720010c 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -85,7 +85,8 @@ impl Window {
pub fn set_title(&self, text: &str) {
unsafe {
ffi::SetWindowTextW(self.window,
- text.utf16_units().collect::<Vec<u16>>().append_one(0).as_ptr() as ffi::LPCWSTR);
+ text.utf16_units().chain(Some(0).into_iter())
+ .collect::<Vec<u16>>().as_ptr() as ffi::LPCWSTR);
}
}