diff options
author | tomaka <pierre.krieger1708@gmail.com> | 2015-04-03 19:18:14 +0200 |
---|---|---|
committer | tomaka <pierre.krieger1708@gmail.com> | 2015-04-03 19:18:14 +0200 |
commit | 36c927c7a4559f0ef9ff2395e02ee3eb1ad41dfc (patch) | |
tree | d82e8f05a783253e4ed1935937f4c5875bc2e85e /src/win32/mod.rs | |
parent | 424cc5ea4909e9e57a1d14b6ad6a397e992ab6fb (diff) | |
parent | b99309bee20a23d118a3b58a8f73d28a62778c84 (diff) | |
download | glutin-36c927c7a4559f0ef9ff2395e02ee3eb1ad41dfc.tar.gz glutin-36c927c7a4559f0ef9ff2395e02ee3eb1ad41dfc.zip |
Merge pull request #356 from tomaka/rustup
Remove deprecated functions
Diffstat (limited to 'src/win32/mod.rs')
-rw-r--r-- | src/win32/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/mod.rs b/src/win32/mod.rs index be72d53..1f5f3c0 100644 --- a/src/win32/mod.rs +++ b/src/win32/mod.rs @@ -111,8 +111,8 @@ impl Window { /// /// Calls SetWindowText on the HWND. pub fn set_title(&self, text: &str) { - let text = OsStr::from_str(text).encode_wide().chain(Some(0).into_iter()) - .collect::<Vec<_>>(); + let text = OsStr::new(text).encode_wide().chain(Some(0).into_iter()) + .collect::<Vec<_>>(); unsafe { user32::SetWindowTextW(self.window.0, text.as_ptr() as winapi::LPCWSTR); |