lud icon indicating copy to clipboard operation
lud copied to clipboard

upgrade and improve error handling

Open jcrowgey opened this issue 5 years ago • 0 comments

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.

jcrowgey avatar Feb 09 '20 19:02 jcrowgey