Skip to content

upgrade and improve error handling #2

@jcrowgey

Description

@jcrowgey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions