This is an attempt to make the library usable in a panic-free way. I'm not too bound to this particular implementation, this is just one possible implementation, however I'd be happy if some form of this would be accepted. This would help addressing the issue for integrating this lib with cargo: https://github.com/rust-lang/cargo/pull/2127#issuecomment-165921905.
Implement error propagation
This allows to let the caller handle errors that occur while determining
the XDG paths.
Implement the error as opaque BaseDirectoriesError that implements
Debug, Display and Error.
This is an attempt to make the library usable in a panic-free way. I'm not too bound to this particular implementation, this is just one possible implementation, however I'd be happy if some form of this would be accepted. This would help addressing the issue for integrating this lib with cargo: https://github.com/rust-lang/cargo/pull/2127#issuecomment-165921905.
Implement error propagation
This allows to let the caller handle errors that occur while determining the XDG paths.
Implement the error as opaque
BaseDirectoriesError
that implementsDebug
,Display
andError
.