From 8cc5ff77a15785fb9ead5445cb0a4e4c7cfedb5a Mon Sep 17 00:00:00 2001 From: DanGould Date: Mon, 2 Dec 2024 13:07:08 -0500 Subject: [PATCH] Silence unused UriErerorInner dead code The error is only passed up via `source` when `std::error::Error` is available. When the feature is off, it's dead code. --- src/de.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/de.rs b/src/de.rs index f70c810..c5f3c48 100644 --- a/src/de.rs +++ b/src/de.rs @@ -234,6 +234,7 @@ impl std::error::Error for Error< pub struct UriError(UriErrorInner); #[derive(Debug, Clone)] +#[cfg_attr(not(feature = "std"), allow(dead_code))] enum UriErrorInner { TooShort, InvalidScheme,