fix: variants no longer exist

This commit is contained in:
rvcas 2023-02-20 15:36:37 -05:00 committed by Lucas
parent 94ffc36442
commit 97f03e5e98
1 changed files with 0 additions and 4 deletions

View File

@ -180,8 +180,6 @@ impl GetSource for Error {
Error::ImportCycle { .. } => None, Error::ImportCycle { .. } => None,
Error::Parse { path, .. } => Some(path.to_path_buf()), Error::Parse { path, .. } => Some(path.to_path_buf()),
Error::Type { path, .. } => Some(path.to_path_buf()), Error::Type { path, .. } => Some(path.to_path_buf()),
Error::ValidatorMustReturnBool { path, .. } => Some(path.to_path_buf()),
Error::WrongValidatorArity { path, .. } => Some(path.to_path_buf()),
Error::TestFailure { path, .. } => Some(path.to_path_buf()), Error::TestFailure { path, .. } => Some(path.to_path_buf()),
Error::Http(_) => None, Error::Http(_) => None,
Error::ZipExtract(_) => None, Error::ZipExtract(_) => None,
@ -206,8 +204,6 @@ impl GetSource for Error {
Error::ImportCycle { .. } => None, Error::ImportCycle { .. } => None,
Error::Parse { src, .. } => Some(src.to_string()), Error::Parse { src, .. } => Some(src.to_string()),
Error::Type { src, .. } => Some(src.to_string()), Error::Type { src, .. } => Some(src.to_string()),
Error::ValidatorMustReturnBool { src, .. } => Some(src.to_string()),
Error::WrongValidatorArity { src, .. } => Some(src.to_string()),
Error::TestFailure { .. } => None, Error::TestFailure { .. } => None,
Error::Http(_) => None, Error::Http(_) => None,
Error::ZipExtract(_) => None, Error::ZipExtract(_) => None,