• Gobbel2000@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    There is the map_err method on Result which simplifies this case. But yes, anyhow is still easier if you don’t care that much about the error contents.

    • treadful@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      Completely forgot about this one. Think I still like the other approach (implementing From) for most places, but I’ll keep this one in mind too, thanks.