From 3da9cb8e5ee6b05f0c5aab41cbd76948a13176a2 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Wed, 9 Feb 2022 08:31:32 +0100 Subject: [PATCH] Fixed compile errors on stable compiler --- Cargo.toml | 2 +- src/macros.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7b0ba31..5d6dde5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gfx-maths" -version = "0.2.7" +version = "0.2.8" authors = [ "Robin Quint" ] edition = "2018" description = "Implementations for the most essential Graphics Math operations" diff --git a/src/macros.rs b/src/macros.rs index 24c53c6..38975fa 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -15,7 +15,7 @@ macro_rules! swizzle_type { macro_rules! swizzle { ($($members:ident),+) => { paste::paste! { - #[doc(cfg(feature="swizzle"))] // make docs.rs more readable by showing the required feature + #[cfg_attr(doc, doc(cfg(feature="swizzle")))] // make docs.rs more readable by showing the required feature pub fn [<$($members)+>](&self) -> swizzle_type!($($members),+) { ::new( $(self.$members),+