From a465d1ae5b4ddce8d4c00c708390db8d374e0421 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 23 Jun 2024 13:56:37 -0500 Subject: [PATCH] Allow versions to be unused --- src/jobs/nodeinfo.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jobs/nodeinfo.rs b/src/jobs/nodeinfo.rs index ce6a326..7e979a0 100644 --- a/src/jobs/nodeinfo.rs +++ b/src/jobs/nodeinfo.rs @@ -156,7 +156,7 @@ struct Link { #[serde(untagged)] enum MaybeSupported { Supported(T), - Unsupported(String), + Unsupported(#[allow(unused)] String), } impl MaybeSupported { @@ -165,8 +165,8 @@ impl MaybeSupported { } } -struct SupportedVersion(String); -struct SupportedNodeinfo(String); +struct SupportedVersion(#[allow(unused)] String); +struct SupportedNodeinfo(#[allow(unused)] String); static SUPPORTED_VERSIONS: &str = "2."; static SUPPORTED_NODEINFO: &str = "http://nodeinfo.diaspora.software/ns/schema/2.";