Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
Because chainerror::Error implements Deref to &T, we can also match on *e instead of e.kind() or call a function with &e
*e
e.kind()
&e
{{#include ../examples/tutorial12.rs}} # #[allow(dead_code)] # mod chainerror { {{#rustdoc_include ../src/lib.rs:-1}} # }