this post was submitted on 11 Jun 2026
27 points (100.0% liked)

Rust

8059 readers
58 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
you are viewing a single comment's thread
view the rest of the comments
[–] calcopiritus@lemmy.world 0 points 16 hours ago (1 children)

That's what ? is for. If you have to do that manually, something is not working correctly.

[–] treadful@lemmy.zip 1 points 14 hours ago (1 children)

That only works if everything has the same error types.

[–] calcopiritus@lemmy.world 4 points 13 hours ago

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