mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-04 10:49:55 +00:00
use thiserror
This commit is contained in:
parent
a1640e4aa1
commit
122382cb53
3 changed files with 4 additions and 12 deletions
|
@ -16,14 +16,7 @@ impl<T> std::ops::Deref for BaseError<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<T> std::error::Error for BaseError<T>
|
||||
where
|
||||
T: std::fmt::Display + std::fmt::Debug,
|
||||
{
|
||||
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
|
||||
None
|
||||
}
|
||||
}
|
||||
impl<T> std::error::Error for BaseError<T> where T: std::fmt::Display + std::fmt::Debug {}
|
||||
|
||||
impl<T> Display for BaseError<T>
|
||||
where
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue