Tidy up the parse_relfilename function.

A few things that Eric commented on at PR #96:

- Use thiserror to simplify the implemention of FilePathError
- Add unit tests
- Fix a few complaints from clippy
This commit is contained in:
Heikki Linnakangas
2021-05-07 11:01:34 +03:00
parent b7575582b8
commit e5e5c3e067
5 changed files with 87 additions and 45 deletions

View File

@@ -16,6 +16,7 @@ anyhow = "1.0"
crc32c = "0.6.0"
hex = "0.4.3"
log = "0.4.14"
thiserror = "1.0"
[build-dependencies]
bindgen = "0.57"