fix: variants no longer exist
This commit is contained in:
parent
94ffc36442
commit
97f03e5e98
|
@ -180,8 +180,6 @@ impl GetSource for Error {
|
|||
Error::ImportCycle { .. } => None,
|
||||
Error::Parse { 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::Http(_) => None,
|
||||
Error::ZipExtract(_) => None,
|
||||
|
@ -206,8 +204,6 @@ impl GetSource for Error {
|
|||
Error::ImportCycle { .. } => None,
|
||||
Error::Parse { 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::Http(_) => None,
|
||||
Error::ZipExtract(_) => None,
|
||||
|
|
Loading…
Reference in New Issue