Add #[non_exhaustive] to ProtoBufRejection (#1280)

This commit is contained in:
David Pedersen
2022-08-19 10:17:40 +00:00
committed by GitHub
parent 568394a28e
commit 18dd830b84
+1
View File
@@ -188,6 +188,7 @@ impl IntoResponse for ProtoBufDecodeError {
/// Contains one variant for each way the [`ProtoBuf`] extractor /// Contains one variant for each way the [`ProtoBuf`] extractor
/// can fail. /// can fail.
#[derive(Debug)] #[derive(Debug)]
#[non_exhaustive]
pub enum ProtoBufRejection { pub enum ProtoBufRejection {
#[allow(missing_docs)] #[allow(missing_docs)]
ProtoBufDecodeError(ProtoBufDecodeError), ProtoBufDecodeError(ProtoBufDecodeError),