Use to_vec in windows/update_with_buffer (#33)

This commit is contained in:
FlyingGaz 2017-01-15 17:46:02 +01:00 committed by Daniel Collin
parent a8e5215f55
commit 933d7662fb

View file

@ -639,7 +639,7 @@ impl Window {
Self::generic_update(self, window); Self::generic_update(self, window);
self.buffer = buffer.iter().cloned().collect(); self.buffer = buffer.to_vec();
unsafe { unsafe {
user32::InvalidateRect(window, ptr::null_mut(), winapi::TRUE); user32::InvalidateRect(window, ptr::null_mut(), winapi::TRUE);
} }