Remove dead_code annotations and add #[non_exhaustive] to public enums

All #[allow(dead_code)] annotations on now-used items have been removed
(acceptor.rs, acme.rs, config.rs, static_config.rs). #[non_exhaustive]
added to TlsMode, ProxyError, AdminSocketError, and ValidationError
with wildcard match arms in main.rs for the non-exhaustive enums.
This commit is contained in:
2026-06-12 05:12:32 +00:00
parent 516efb0403
commit cbcd746c9f
8 changed files with 11 additions and 19 deletions

View File

@@ -14,6 +14,7 @@ use crate::shutdown::GracefulShutdown;
use crate::config::ConfigReloadHandle;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum AdminSocketError {
#[error("admin socket disabled (empty path)")]
Disabled,