File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,12 @@ pub fn unreachable<T = ()>(_: Void) -> T {
56
56
}
57
57
58
58
/// Extensions to `Result<T, Void>`
59
- pub trait VoidExtensions < T > : Sized {
59
+ pub trait ResultVoidExt < T > : Sized {
60
60
/// Get the value out of a wrapper.
61
61
fn void_unwrap ( self ) -> T ;
62
62
}
63
63
64
- impl < T > VoidExtensions < T > for Result < T , Void > {
64
+ impl < T > ResultVoidExt < T > for Result < T , Void > {
65
65
/// Get the value out of an always-ok Result.
66
66
///
67
67
/// Never panics, since it is statically known to be Ok.
@@ -75,12 +75,12 @@ impl<T> VoidExtensions<T> for Result<T, Void> {
75
75
}
76
76
77
77
/// Extensions to `Result<Void, E>`
78
- pub trait ErrVoidExtensions < E > : Sized {
78
+ pub trait ResultVoidErrExt < E > : Sized {
79
79
/// Get the error out of a wrapper.
80
80
fn void_unwrap_err ( self ) -> E ;
81
81
}
82
82
83
- impl < E > ErrVoidExtensions < E > for Result < Void , E > {
83
+ impl < E > ResultVoidErrExt < E > for Result < Void , E > {
84
84
/// Get the error out of an always-err Result.
85
85
///
86
86
/// Never panics, since it is statically known to be Err.
You can’t perform that action at this time.
0 commit comments