You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution to this issue is we can use setReader and setWriter to generate a set of specialized encode, decode, loadFile, saveFile and friends.
Rather than using a too generic Format: type, the generated specialized procs can use something like Format: Json thus preventing the above issue.
Furthermore we can adjust setReader and setWriter to actually produce this set of standard operation or not. Because for example in toml-serialization, I ended up overriding all of these encoders/decoders.
Example:
Doesn't compile
Switching to
Make it work, but in my case, this line is in a generic procedure in a dependency, so I can't change it
Instead, I had to use
The text was updated successfully, but these errors were encountered: