From 876131f0b08857dae09e9c5f230036a6cb036009 Mon Sep 17 00:00:00 2001 From: Erwan Vivien Date: Mon, 30 Oct 2023 09:21:12 +0100 Subject: [PATCH] fix: remove unused function warning --- src/version.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/version.rs b/src/version.rs index 0784f06..b5c9ff3 100644 --- a/src/version.rs +++ b/src/version.rs @@ -630,6 +630,7 @@ impl Version { /// # Panics /// Function panics if `n` is not included in `(21..=177).step_by(4)` #[must_use] + #[cfg(any(test, feature = "svg", feature = "image", debug_assertions))] pub(crate) const fn from_n(n: usize) -> Self { use Version::{ V01, V02, V03, V04, V05, V06, V07, V08, V09, V10, V11, V12, V13, V14, V15, V16, V17,