File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2031,7 +2031,7 @@ impl ConfigError {
2031
2031
}
2032
2032
2033
2033
fn is_missing_field ( & self ) -> bool {
2034
- self . error . downcast_ref :: < MissingField > ( ) . is_some ( )
2034
+ self . error . downcast_ref :: < MissingFieldError > ( ) . is_some ( )
2035
2035
}
2036
2036
2037
2037
fn missing ( key : & ConfigKey ) -> ConfigError {
@@ -2067,15 +2067,15 @@ impl fmt::Display for ConfigError {
2067
2067
}
2068
2068
2069
2069
#[ derive( Debug ) ]
2070
- struct MissingField ( String ) ;
2070
+ struct MissingFieldError ( String ) ;
2071
2071
2072
- impl fmt:: Display for MissingField {
2072
+ impl fmt:: Display for MissingFieldError {
2073
2073
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2074
2074
write ! ( f, "missing field `{}`" , self . 0 )
2075
2075
}
2076
2076
}
2077
2077
2078
- impl std:: error:: Error for MissingField { }
2078
+ impl std:: error:: Error for MissingFieldError { }
2079
2079
2080
2080
impl serde:: de:: Error for ConfigError {
2081
2081
fn custom < T : fmt:: Display > ( msg : T ) -> Self {
@@ -2087,7 +2087,7 @@ impl serde::de::Error for ConfigError {
2087
2087
2088
2088
fn missing_field ( field : & ' static str ) -> Self {
2089
2089
ConfigError {
2090
- error : anyhow:: Error :: new ( MissingField ( field. to_string ( ) ) ) ,
2090
+ error : anyhow:: Error :: new ( MissingFieldError ( field. to_string ( ) ) ) ,
2091
2091
definition : None ,
2092
2092
}
2093
2093
}
You can’t perform that action at this time.
0 commit comments