| ▲ | Graziano_M 2 hours ago | ||||||||||||||||||||||||||||||||||||||||
I think you're proving the author's point. | |||||||||||||||||||||||||||||||||||||||||
| ▲ | GreenDolphinSys 2 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||
They're saying that you don't always have to return Result<T, Box<dyn Error>>, you can implement the From<Error> trait on the type and use ? as usual. In other words implementing that trait lets you set a return type like Result<T, CustomAppError> use ? on it. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||
| ▲ | tcfhgj 2 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||
how so? | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||