diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-05-12 07:32:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-12 07:32:27 -0600 |
| commit | d7f5e1f5d1677d90fa7f0b475e20d8679b6250a3 (patch) | |
| tree | 1441a1db6c290c8eb09bab54ad0555dae92e3068 /src/libstd/sys | |
| parent | 3603d241d8cfa3a323375171e0a5fc9118764f0b (diff) | |
| parent | e333725664c45874262ecb11e511c17cfd4672f0 (diff) | |
| download | rust-d7f5e1f5d1677d90fa7f0b475e20d8679b6250a3.tar.gz rust-d7f5e1f5d1677d90fa7f0b475e20d8679b6250a3.zip | |
Rollup merge of #50550 - llogiq:fmt-result, r=petrochenkov
use fmt::Result where applicable This is a quite boring PR, but I think the type alias improves readability, so why not use it?
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/redox/syscall/error.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/redox/syscall/error.rs b/src/libstd/sys/redox/syscall/error.rs index d8d78d55016..1ef79547431 100644 --- a/src/libstd/sys/redox/syscall/error.rs +++ b/src/libstd/sys/redox/syscall/error.rs @@ -48,13 +48,13 @@ impl Error { } impl fmt::Debug for Error { - fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(self.text()) } } impl fmt::Display for Error { - fn fmt(&self, f: &mut fmt::Formatter) -> result::Result<(), fmt::Error> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(self.text()) } } |
