diff --git a/below/below_derive/src/qenum.rs b/below/below_derive/src/qenum.rs index 4f428809..ae302016 100644 --- a/below/below_derive/src/qenum.rs +++ b/below/below_derive/src/qenum.rs @@ -77,6 +77,7 @@ pub fn enum_to_string_derive_impl(ast: &DeriveInput) -> syn::Result fn to_string(&self) -> ::std::string::String { match self { #(#variant_to_string_arms)* + _ => unreachable!(), } } } diff --git a/below/below_derive/src/queriable.rs b/below/below_derive/src/queriable.rs index 99a6cf41..b18bbb62 100644 --- a/below/below_derive/src/queriable.rs +++ b/below/below_derive/src/queriable.rs @@ -266,6 +266,7 @@ pub fn queriable_derive_impl(ast: &DeriveInput) -> syn::Result { fn query(&self, field_id: &Self::FieldId) -> ::std::option::Option { match field_id { #(#queriable_match_arms)* + _ => unreachable!(), } } }