File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -126,27 +126,7 @@ pub enum Error {
126
126
__Nonexhaustive,
127
127
}
128
128
129
- impl error:: Error for Error {
130
- fn description ( & self ) -> & str {
131
- match * self {
132
- Error :: EnvNoPkgConfig ( _) => "pkg-config requested to be aborted" ,
133
- Error :: CrossCompilation => {
134
- "pkg-config doesn't handle cross compilation. \
135
- Use PKG_CONFIG_ALLOW_CROSS=1 to override"
136
- }
137
- Error :: Command { .. } => "failed to run pkg-config" ,
138
- Error :: Failure { .. } => "pkg-config did not exit sucessfully" ,
139
- Error :: __Nonexhaustive => panic ! ( ) ,
140
- }
141
- }
142
-
143
- fn cause ( & self ) -> Option < & dyn error:: Error > {
144
- match * self {
145
- Error :: Command { ref cause, .. } => Some ( cause) ,
146
- _ => None ,
147
- }
148
- }
149
- }
129
+ impl error:: Error for Error { }
150
130
151
131
impl fmt:: Display for Error {
152
132
fn fmt ( & self , f : & mut fmt:: Formatter ) -> Result < ( ) , fmt:: Error > {
You can’t perform that action at this time.
0 commit comments