mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Don't use trait objects without an explicit dyn
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user