Allow error::Result type to use other error

Convenience since this Result will shadow std::result::Result when
imported
This commit is contained in:
2026-06-27 17:06:24 -04:00
parent 86291f1eb5
commit 87aa18b7cc

View File

@@ -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)] #[derive(Debug, Clone, Deserialize, Serialize, thiserror::Error)]
pub struct Error { pub struct Error {