diff options
Diffstat (limited to 'sys_util/src/errno.rs')
-rw-r--r-- | sys_util/src/errno.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys_util/src/errno.rs b/sys_util/src/errno.rs index 023b162..4643484 100644 --- a/sys_util/src/errno.rs +++ b/sys_util/src/errno.rs @@ -2,7 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -use std::error; use std::fmt::{self, Display}; use std::io; use std::result; @@ -41,11 +40,7 @@ impl From<io::Error> for Error { } } -impl error::Error for Error { - fn description(&self) -> &str { - "System returned an error code" - } -} +impl std::error::Error for Error {} impl Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |