File tree 3 files changed +4
-15
lines changed
3 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
8
8
### Changed
9
9
### Fixed
10
10
### Removed
11
+ - Removed deprecated Error::description from error types
12
+ (#[ 1175] ( https://github.com/nix-rust/nix/pull/1175 ) )
11
13
12
14
## [ 0.16.1] - 23 December 2019
13
15
### Added
Original file line number Diff line number Diff line change @@ -111,11 +111,7 @@ impl ErrnoSentinel for libc::sighandler_t {
111
111
fn sentinel ( ) -> Self { libc:: SIG_ERR }
112
112
}
113
113
114
- impl error:: Error for Errno {
115
- fn description ( & self ) -> & str {
116
- self . desc ( )
117
- }
118
- }
114
+ impl error:: Error for Errno { }
119
115
120
116
impl fmt:: Display for Errno {
121
117
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
Original file line number Diff line number Diff line change @@ -152,16 +152,7 @@ impl From<std::string::FromUtf8Error> for Error {
152
152
fn from ( _: std:: string:: FromUtf8Error ) -> Error { Error :: InvalidUtf8 }
153
153
}
154
154
155
- impl error:: Error for Error {
156
- fn description ( & self ) -> & str {
157
- match * self {
158
- Error :: InvalidPath => "Invalid path" ,
159
- Error :: InvalidUtf8 => "Invalid UTF-8 string" ,
160
- Error :: UnsupportedOperation => "Unsupported Operation" ,
161
- Error :: Sys ( ref errno) => errno. desc ( ) ,
162
- }
163
- }
164
- }
155
+ impl error:: Error for Error { }
165
156
166
157
impl fmt:: Display for Error {
167
158
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
You can’t perform that action at this time.
0 commit comments