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

upgrade and improve error handling #2

Open
jcrowgey opened this issue Feb 9, 2020 · 0 comments
Open

upgrade and improve error handling #2

jcrowgey opened this issue Feb 9, 2020 · 0 comments

Comments

@jcrowgey
Copy link
Owner

jcrowgey commented Feb 9, 2020

I've got a rudimentary custom error type which (on current rust) generates deprecation warnings at compile time:

warning: trait objects without an explicit `dyn` are deprecated
  --> src/errors.rs:17:32
   |
17 |     fn cause(&self) -> Option<&error::Error> {
   |                                ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error`
   |
   = note: #[warn(bare_trait_objects)] on by default

warning: trait objects without an explicit `dyn` are deprecated
  --> src/question.rs:44:32
   |
44 |     fn cause(&self) -> Option<&error::Error> {
   |                                ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error`

I need to grok proper error handling in Rust and upgrade lud accordingly.

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

No branches or pull requests

1 participant