From 933d7662fb3f1e2e13e4ffac87a2337d83492344 Mon Sep 17 00:00:00 2001 From: FlyingGaz Date: Sun, 15 Jan 2017 17:46:02 +0100 Subject: [PATCH] Use to_vec in windows/update_with_buffer (#33) --- src/os/windows/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }