err.description is deprecated (#537)
This commit is contained in:
parent
51b86af13b
commit
1411969c37
1 changed files with 1 additions and 11 deletions
|
@ -365,17 +365,7 @@ impl fmt::Display for GraphQLRequestError {
|
|||
}
|
||||
|
||||
impl Error for GraphQLRequestError {
|
||||
fn description(&self) -> &str {
|
||||
match *self {
|
||||
GraphQLRequestError::BodyHyper(ref err) => err.description(),
|
||||
GraphQLRequestError::BodyUtf8(ref err) => err.description(),
|
||||
GraphQLRequestError::BodyJSONError(ref err) => err.description(),
|
||||
GraphQLRequestError::Variables(ref err) => err.description(),
|
||||
GraphQLRequestError::Invalid(ref err) => err,
|
||||
}
|
||||
}
|
||||
|
||||
fn cause(&self) -> Option<&dyn Error> {
|
||||
fn source(&self) -> Option<&(dyn Error + 'static)> {
|
||||
match *self {
|
||||
GraphQLRequestError::BodyHyper(ref err) => Some(err),
|
||||
GraphQLRequestError::BodyUtf8(ref err) => Some(err),
|
||||
|
|
Loading…
Reference in a new issue