diff --git a/src/os/windows/mod.rs b/src/os/windows/mod.rs index 2cb3bdf..8661d06 100644 --- a/src/os/windows/mod.rs +++ b/src/os/windows/mod.rs @@ -639,7 +639,7 @@ impl Window { Self::generic_update(self, window); - self.buffer = buffer.iter().cloned().collect(); + self.buffer = buffer.to_vec(); unsafe { user32::InvalidateRect(window, ptr::null_mut(), winapi::TRUE); }