Skip to content

Commit 3638cdc

Browse files
committed
refactor(error): Allow overriding the default error
1 parent 0319e38 commit 3638cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl ConfigError {
174174
}
175175

176176
/// Alias for a `Result` with the error type set to `ConfigError`.
177-
pub(crate) type Result<T> = result::Result<T, ConfigError>;
177+
pub(crate) type Result<T, E = ConfigError> = result::Result<T, E>;
178178

179179
// Forward Debug to Display for readable panic! messages
180180
impl fmt::Debug for ConfigError {

0 commit comments

Comments
 (0)