Removed the get_cause function since it is redundant.

This commit is contained in:
2020-02-12 22:48:29 -05:00
parent 1633174506
commit 16878ec911
2 changed files with 4 additions and 9 deletions

View File

@ -7,7 +7,7 @@ use binding::CInt;
/// This can be used for clearing an error.
pub const NO_ERROR: CInt = 0;
/// Include the generated C error values.
// Include the generated C error values.
include!(concat!(env!("OUT_DIR"), "/errno_values.rs"));
@ -157,11 +157,6 @@ impl Error for CError
{ "Detected an Error not handled by CError" }
}
}
fn get_cause(&self) -> Option<&Error>
{
None
}
}