Closed vic1707 closed 2 months ago
Good catch! Thanks for reporting! I will fix that.
Though, I'd like to point, that the example above is not gonna work anyway because the function passed to with =
should return Result<(), Error>
.
In case of fs::exists
it returns Result<bool, Error>
.
Yup I got that too, I made a separate function to check if it exists and is a file π When opening the issue I reverted to that state and forgot to check if it compiled since I was interested by the macro parsing π€£ That's my bad
I don't know if the issue name is right or understandable sorry.
I found out that
causes an error at the
io::
. I think the macro should support that.Current workaround
use std::io::Error as IoError;
π€·