Skip to content

Commit

Permalink
Silence unused UriErerorInner dead code
Browse files Browse the repository at this point in the history
The error is only passed up via `source` when `std::error::Error` is
available. When the feature is off, it's dead code.
DanGould committed Dec 2, 2024
1 parent 4a3a5b1 commit 1f0d7b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
@@ -224,6 +224,7 @@ impl<T: fmt::Display + std::error::Error + 'static> std::error::Error for Error<
pub struct UriError(UriErrorInner);

#[derive(Debug, Clone)]
#[cfg_attr(not(feature = "std"), allow(dead_code))]
enum UriErrorInner {
TooShort,
InvalidScheme,

0 comments on commit 1f0d7b9

Please sign in to comment.