Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove std::error::Error description method implementations #295

Merged
merged 1 commit into from
Dec 29, 2019

Conversation

rotty
Copy link
Collaborator

@rotty rotty commented Dec 29, 2019

The description method has been soft-deprecated for some time now,
and current nightly (1.41) warns upon its use:

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()

Since our description implementation made use of the underlying
error's description method, we triggered that warning. Let's fix
that by just getting rid of the implementation containing the
offending code.

The `description` method has been soft-deprecated for some time now,
and current nightly (1.41) warns upon its use:

    warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()

Since our `description` implementation made use of the underlying
error's `description` method, we triggered that warning. Let's fix
that by just getting rid of the implementation containing the
offending code.
@rotty rotty merged commit f4ad565 into erickt:master Dec 29, 2019
@rotty rotty deleted the pr/no-std-error-description branch December 29, 2019 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant