From 1a59d7bdc00bee2a4777af8194e10ff2fe2f707a Mon Sep 17 00:00:00 2001 From: Tom Gowan Date: Tue, 30 Apr 2019 09:27:45 +1000 Subject: [PATCH] fix nightly stable copied --- src/layouts.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layouts.rs b/src/layouts.rs index e66ce15..5c5a5b3 100644 --- a/src/layouts.rs +++ b/src/layouts.rs @@ -56,7 +56,7 @@ unsafe impl PipelineLayoutDesc for FragLayout { self.layout_data.num_sets } fn num_bindings_in_set(&self, set: usize) -> Option { - self.layout_data.num_bindings.get(&set).copied() + self.layout_data.num_bindings.get(&set).map(|&b|b) } fn descriptor(&self, set: usize, binding: usize) -> Option { self.layout_data.descriptions.get(&set) @@ -123,7 +123,7 @@ unsafe impl PipelineLayoutDesc for VertLayout { self.layout_data.num_sets } fn num_bindings_in_set(&self, set: usize) -> Option { - self.layout_data.num_bindings.get(&set).copied() + self.layout_data.num_bindings.get(&set).map(|&b|b) } fn descriptor(&self, set: usize, binding: usize) -> Option { self.layout_data.descriptions.get(&set)