From e413409f9fed4a169304ab01f02bdd42dea3f515 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 30 Aug 2024 13:25:50 -0700 Subject: [PATCH] remove parentheses from macro --- fixed_wide_vectors/src/macros/vector.rs | 2 +- fixed_wide_vectors/src/vector.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fixed_wide_vectors/src/macros/vector.rs b/fixed_wide_vectors/src/macros/vector.rs index 8ba5e62..e8da06b 100644 --- a/fixed_wide_vectors/src/macros/vector.rs +++ b/fixed_wide_vectors/src/macros/vector.rs @@ -251,7 +251,7 @@ macro_rules! impl_vector { #[doc(hidden)] #[macro_export(local_inner_macros)] macro_rules! impl_vector_extend { - ( ($struct: ident { $($field: ident), + }), ($struct_extended: ident, $field_extended: ident) ) => { + ( $struct: ident { $($field: ident), + }, $struct_extended: ident, $field_extended: ident ) => { impl $struct { #[inline(always)] pub fn extend(self,value:T) -> $struct_extended { diff --git a/fixed_wide_vectors/src/vector.rs b/fixed_wide_vectors/src/vector.rs index 9f34410..6f95a15 100644 --- a/fixed_wide_vectors/src/vector.rs +++ b/fixed_wide_vectors/src/vector.rs @@ -67,8 +67,8 @@ crate::impl_vector!(Vector2 { x, y }, (T, T), 2); crate::impl_vector!(Vector3 { x, y, z }, (T, T, T), 3); crate::impl_vector!(Vector4 { x, y, z, w }, (T, T, T, T), 4); -crate::impl_vector_extend!((Vector2 { x, y }), (Vector3, z)); -crate::impl_vector_extend!((Vector3 { x, y, z }), (Vector4, w)); +crate::impl_vector_extend!(Vector2 { x, y }, Vector3, z); +crate::impl_vector_extend!(Vector3 { x, y, z }, Vector4, w); crate::impl_matrix!((Vector2 { x, y }, ((T, T), (T, T)), 2), (Vector2, 2), (Vector2 { x, y }) ); crate::impl_matrix!((Vector2 { x, y }, ((T, T, T), (T, T, T)), 2), (Vector3, 3), (Vector3 { x, y, z }) );