Closed Hackzzila closed 4 months ago
That is a fair point. Could also change them from re-exports to type aliases so it is more clear in the docs.
using anyhow directly is good if we think it's likely we won't want a custom error type in the future.
In my opinion, the aliases
EncodeError
andDecodeError
can be confusing if you are skimming the docs. For the longest time I assumed they were a custom type, not both aliases foranyhow::Error
. This also is confusing whenrust-analyzer
seems to pretend those types don't exist (well, because they don't). I think it is more clear to just useanyhow::Result
oranyhow::Error
explicitly.