rust-cli / human-panic

Panic messages for humans.
https://docs.rs/human-panic
Apache License 2.0
1.66k stars 65 forks source link

Properly handle file paths using Path and PathBuf #9

Closed skade closed 6 years ago

skade commented 6 years ago

🐛 bug fix

During trying human-panic, the current path caught my eye: /var/folders/zw/bpfvmq390lv2c6gn_6byyv0w0000gn/T//report-9f934660-cf8f-418c-be89-c99728664a46.toml. There's a double "//" in there, which usually indicates that you are joining paths using format! instead of properly using the path API. This change makes human-panic use the path API.

Checklist

To the extend they passed before, examples/err.rs is broken.

Semver Changes

path version bump, I consider this a bugfix.