Mark 'form::ErrorKind' 'non_exhaustive'.

This commit is contained in:
Sergio Benitez 2021-06-29 05:06:37 -07:00
parent 9ce2935fe1
commit 5a2535f865
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ pub struct Error<'v> {
/// * [`io::Error`] => [`ErrorKind::Io`]
/// * `Box<dyn std::error::Error + Send` => [`ErrorKind::Custom`]
#[derive(Debug)]
#[non_exhaustive]
pub enum ErrorKind<'v> {
/// The value's length, in bytes, was outside the range `[min, max]`.
InvalidLength {