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

Resolve Deprecated warnings in the Error traits #48

Open
dsietz opened this issue Feb 27, 2022 · 1 comment
Open

Resolve Deprecated warnings in the Error traits #48

dsietz opened this issue Feb 27, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@dsietz
Copy link
Owner

dsietz commented Feb 27, 2022

Resolve the Deprecated warnings in the following traits:

  1. pbd::dpi::error::Error
  2. pbd::dsg::error::Error
  3. pbd::dtc::error::Error
  4. pbd::dua::error::Error

The impacted methods are the following:

  • description(&self) -> &str
    Deprecated since 1.42.0: use the Display impl or to_string()
  • cause(&self) -> Option<&dyn Error>
    Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
@dsietz dsietz self-assigned this Feb 27, 2022
@dsietz dsietz added bug Something isn't working enhancement New feature or request labels Feb 27, 2022
@dsietz
Copy link
Owner Author

dsietz commented Feb 27, 2022

The Rust lang std::io::Error also has these warnings.

@dsietz dsietz removed the bug Something isn't working label Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant