100-exercises-to-learn-rust icon indicating copy to clipboard operation
100-exercises-to-learn-rust copied to clipboard

`#[from]` macro used in `14_source` solution not explained

Open louwers opened this issue 1 year ago • 0 comments

The solution to 14_source uses #[from]:

https://github.com/mainmatter/100-exercises-to-learn-rust/blob/8fedc3ce13a0b90651508787ed47affac368c689/exercises/05_ticket_v2/14_source/src/lib.rs#L27

I don't think it is explained or introduced anywhere. I just used

    InvalidStatus { source: ParseStatusError },

for my solution.

louwers avatar Oct 20 '24 17:10 louwers