35
you are viewing a single comment's thread
view the rest of the comments
[-] treadful@lemmy.zip 0 points 2 months ago

That only works if everything has the same error types.

[-] calcopiritus@lemmy.world 4 points 2 months ago

Or just implement Into for your error type. ? Works for Into

[-] jenesaisquoi@feddit.org 2 points 2 months ago

Don't implement Into, instead, implement From - and you'll get Into for free

this post was submitted on 11 Jun 2026
35 points (97.3% liked)

Rust

8248 readers
6 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS