@@ -44,7 +44,7 @@ pub enum FilterAndFormatError {
4444 #[ error( "Semantic filter configuration error: {0}" ) ]
4545 FilterByCompiler ( #[ from] filter_by_compiler:: ConfigurationError ) ,
4646 #[ error( "Path formatter configuration error: {0}" ) ]
47- PathFormatter ( #[ from] formatter:: PathFormatterError ) ,
47+ PathFormatter ( #[ from] formatter:: ConfigurationError ) ,
4848}
4949
5050impl TryFrom < & config:: Output > for FilterAndFormat {
@@ -113,15 +113,15 @@ mod formatter {
113113 }
114114
115115 #[ derive( Debug , Error ) ]
116- pub enum PathFormatterError {
116+ pub enum ConfigurationError {
117117 #[ error( "Only relative paths for 'file' and 'output' when 'directory' is relative." ) ]
118118 OnlyRelativePaths ,
119119 #[ error( "Getting current directory failed: {0}" ) ]
120120 CurrentWorkingDirectory ( #[ from] io:: Error ) ,
121121 }
122122
123123 impl TryFrom < & config:: PathFormat > for PathFormatter {
124- type Error = PathFormatterError ;
124+ type Error = ConfigurationError ;
125125
126126 fn try_from ( config : & config:: PathFormat ) -> Result < Self , Self :: Error > {
127127 use config:: PathResolver :: Relative ;
@@ -130,7 +130,7 @@ mod formatter {
130130 if config. directory == Relative
131131 && ( config. file != Relative || config. output != Relative )
132132 {
133- return Err ( PathFormatterError :: OnlyRelativePaths ) ;
133+ return Err ( ConfigurationError :: OnlyRelativePaths ) ;
134134 }
135135 Ok ( Self :: DoFormat ( config. clone ( ) , env:: current_dir ( ) ?) )
136136 }
@@ -502,7 +502,7 @@ mod formatter {
502502 assert ! ( result. is_err( ) ) ;
503503 assert ! ( matches!(
504504 result. err( ) . unwrap( ) ,
505- PathFormatterError :: OnlyRelativePaths
505+ ConfigurationError :: OnlyRelativePaths
506506 ) ) ;
507507 }
508508 }
0 commit comments