Panic on unwrapping of Err value
daniellockyer opened this issue · comments
Daniel Lockyer commented
Found using cargo-fuzz
.
This library panics at src/lib.rs:82
if the file path requested does not exist.
Whilst in theory this is correct, I think the library should return a Result
to indicate success or failure. Of course, this means changing the API.
As a side note, if changing the API is okay, it might be a good idea to switch to taking a PathBuf reference.