Skip to content

Commit b06c41e

Browse files
authored
Merge pull request rust-lang#105 from tathanhdinh/use_default_error
Use default implementation of Error trait
2 parents 8852db0 + 639ece1 commit b06c41e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/execution_engine.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ pub enum FunctionLookupError {
2222
FunctionNotFound, // 404!
2323
}
2424

25-
impl Error for FunctionLookupError {
26-
// This method is deprecated on nighty so it's probably not
27-
// something we should worry about
28-
fn description(&self) -> &str {
29-
self.as_str()
30-
}
31-
32-
fn cause(&self) -> Option<&dyn Error> {
33-
None
34-
}
35-
}
25+
impl Error for FunctionLookupError {}
3626

3727
impl FunctionLookupError {
3828
fn as_str(&self) -> &str {

0 commit comments

Comments
 (0)