Skip to content

Commit 722834c

Browse files
authored
Merge pull request glium#1823 from est31/no_array_into_iter
Fix array into iter forward compat warning
2 parents 97f81d0 + f030ffa commit 722834c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/deferred.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ fn main() {
294294
}),
295295
|dt| {
296296
let output = [("output1", &dt.textures[0]), ("output2", &dt.textures[1]), ("output3", &dt.textures[2]), ("output4", &dt.textures[3])];
297-
let framebuffer = glium::framebuffer::MultiOutputFrameBuffer::with_depth_buffer(&display, output.into_iter().cloned(), &dt.depthtexture).unwrap();
297+
let framebuffer = glium::framebuffer::MultiOutputFrameBuffer::with_depth_buffer(&display, output.iter().cloned(), &dt.depthtexture).unwrap();
298298
let light_buffer = glium::framebuffer::SimpleFrameBuffer::with_depth_buffer(&display, &dt.light_texture, &dt.depthtexture).unwrap();
299299
(framebuffer, light_buffer, dt)
300300
}

0 commit comments

Comments
 (0)