From 18dd830b84235ebe21b8cd29ace973271cfb45e9 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Fri, 19 Aug 2022 12:17:40 +0200 Subject: [PATCH] Add `#[non_exhaustive]` to `ProtoBufRejection` (#1280) --- axum-extra/src/protobuf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/axum-extra/src/protobuf.rs b/axum-extra/src/protobuf.rs index ddf45671..906ab5f3 100644 --- a/axum-extra/src/protobuf.rs +++ b/axum-extra/src/protobuf.rs @@ -188,6 +188,7 @@ impl IntoResponse for ProtoBufDecodeError { /// Contains one variant for each way the [`ProtoBuf`] extractor /// can fail. #[derive(Debug)] +#[non_exhaustive] pub enum ProtoBufRejection { #[allow(missing_docs)] ProtoBufDecodeError(ProtoBufDecodeError),