you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 3 months ago

You can do type erasure by converting your errors to Box<dyn Error>, then they have the same type and can be in the same enum variant

  • source
  • parent