Skip to content

Commit 793b8ee

Browse files
committed
Fix Display implementations for glium errors.
1 parent 722c59d commit 793b8ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/glium.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ impl std::error::Error for RendererCreationError {
905905
impl std::fmt::Display for RendererCreationError {
906906
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
907907
match *self {
908-
RendererCreationError::Texture(ref e) => std::fmt::Display(e, f),
909-
RendererCreationError::Program(ref e) => std::fmt::Display(e, f),
908+
RendererCreationError::Texture(ref e) => std::fmt::Display::fmt(e, f),
909+
RendererCreationError::Program(ref e) => std::fmt::Display::fmt(e, f),
910910
}
911911
}
912912
}
@@ -935,8 +935,8 @@ impl std::error::Error for DrawError {
935935
impl std::fmt::Display for DrawError {
936936
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
937937
match *self {
938-
DrawError::Buffer(ref e) => std::fmt::Display(e, f),
939-
DrawError::Draw(ref e) => std::fmt::Display(e, f),
938+
DrawError::Buffer(ref e) => std::fmt::Display::fmt(e, f),
939+
DrawError::Draw(ref e) => std::fmt::Display::fmt(e, f),
940940
}
941941
}
942942
}

0 commit comments

Comments
 (0)