note that the Error display impl is public API

This commit is contained in:
Ashley Mannix 2022-04-23 18:39:55 +10:00 committed by GitHub
parent 9e0dc29274
commit 1a54a9f88a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,7 @@ impl<'a> InvalidUuid<'a> {
} }
} }
// NOTE: This impl is part of the public API. Breaking changes to it should be carefully considered
impl fmt::Display for Error { impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self.0 { match self.0 {