-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PersistError is private #25
Comments
Merged
Actually, my example code is a bit wrong, and apparently you can access fields in a pub but non-exported type. This works: if let Err(e) = f.persist_noclobber(path) {
return Err(e.error);
}; So, close if you want. However exposing it would let it get into the docs, and let callers declare a variable to hold it. |
sourcefrog
added a commit
to sourcefrog/conserve
that referenced
this issue
Apr 21, 2016
Gets the fix for Stebalien/tempfile#25
Stebalien
added a commit
that referenced
this issue
May 19, 2019
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to make it hard to match on errors from
persist
, or perhaps my Rust is just not strong enough?I want to write
The text was updated successfully, but these errors were encountered: