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:
1 parent
516efb0403
commit
cbcd746c9f
8 files changed
+11
-19
No files matched your search
@@ -7,6 +7,7 @@ use super::dynamic_config::DynamicConfig;
|
||||
use super::static_config::StaticConfig;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
#[non_exhaustive]
|
||||
pub enum ValidationError {
|
||||
#[error("at least one listener must be defined")]
|
||||
NoListeners,
|
||||
|
||||
Reference in new issue
Block a user