Don't use trait objects without an explicit dyn

This commit is contained in:
Martin Kröning
2019-12-03 19:04:30 +01:00
parent 498fc04c92
commit c776e040d9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ impl error::Error for InitError {
}
}
fn cause(&self) -> Option<&error::Error> {
fn cause(&self) -> Option<&dyn error::Error> {
match *self {
InitError::AlreadyInitializedError => {
None
+1 -1
View File
@@ -69,7 +69,7 @@ impl error::Error for FontError {
}
}
fn cause(&self) -> Option<&error::Error> {
fn cause(&self) -> Option<&dyn error::Error> {
match *self {
FontError::InvalidLatin1Text(ref error) => {
Some(error)