about summary refs log tree commit diff
path: root/src/librustc_errors
diff options
context:
space:
mode:
authorAndre Bogus <bogusandre@gmail.com>2018-05-09 01:41:44 +0200
committerAndre Bogus <bogusandre@gmail.com>2018-05-09 02:01:37 +0200
commite333725664c45874262ecb11e511c17cfd4672f0 (patch)
treeb5f01abb2bc85e81b5b6f16c8ec4b4eb2962e2f6 /src/librustc_errors
parent8ff4b42064b374bb62043f7729f84b6d979c7667 (diff)
downloadrust-e333725664c45874262ecb11e511c17cfd4672f0.tar.gz
rust-e333725664c45874262ecb11e511c17cfd4672f0.zip
use fmt::Result where applicable
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index c2b442e9497..fd90e1cbe08 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -232,7 +232,7 @@ impl FatalError {
 }
 
 impl fmt::Display for FatalError {
-    fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "parser fatal error")
     }
 }
@@ -249,7 +249,7 @@ impl error::Error for FatalError {
 pub struct ExplicitBug;
 
 impl fmt::Display for ExplicitBug {
-    fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
+    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         write!(f, "parser internal bug")
     }
 }