Allow error::Result type to use other error
Convenience since this Result will shadow std::result::Result when imported
This commit is contained in:
@@ -43,7 +43,7 @@ impl fmt::Display for ErrorLocation {
|
||||
}
|
||||
}
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
pub type Result<T, E = Error> = std::result::Result<T, E>;
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, thiserror::Error)]
|
||||
pub struct Error {
|
||||
|
||||
Reference in New Issue
Block a user