diff options
Diffstat (limited to 'src/descriptor_set/collection.rs')
-rw-r--r-- | src/descriptor_set/collection.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/descriptor_set/collection.rs b/src/descriptor_set/collection.rs index d62c15a..77eb4fa 100644 --- a/src/descriptor_set/collection.rs +++ b/src/descriptor_set/collection.rs @@ -25,7 +25,6 @@ unsafe impl<T> DescriptorSetsCollection for T where T: Into<DescriptorSetWithOffsets>, { - #[inline] fn into_vec(self) -> Vec<DescriptorSetWithOffsets> { vec![self.into()] } @@ -35,7 +34,6 @@ unsafe impl<T> DescriptorSetsCollection for Vec<T> where T: Into<DescriptorSetWithOffsets>, { - #[inline] fn into_vec(self) -> Vec<DescriptorSetWithOffsets> { self.into_iter().map(|x| x.into()).collect() } @@ -48,17 +46,10 @@ macro_rules! impl_collection { $(, $others: Into<DescriptorSetWithOffsets>)* { #[inline] + #[allow(non_snake_case)] fn into_vec(self) -> Vec<DescriptorSetWithOffsets> { - #![allow(non_snake_case)] - let ($first, $($others,)*) = self; - - let mut list = Vec::new(); - list.push($first.into()); - $( - list.push($others.into()); - )+ - list + vec![$first.into() $(, $others.into())+] } } |