File tree 5 files changed +22
-0
lines changed
5 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ 1.3.2 (2020-01-09)
2
+ ==================
3
+ This is a small maintenance release with some house cleaning and bug fixes.
4
+
5
+ Bug fixes:
6
+
7
+ * [ BUG #633 ] ( https://github.com/rust-lang/regex/pull/633 ) :
8
+ Squash deprecation warnings for the ` std::error::Error::description ` method.
9
+
10
+
1
11
1.3.1 (2019-09-04)
2
12
==================
3
13
This is a maintenance release with no changes in order to try to work-around
Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ pub enum ErrorKind {
176
176
}
177
177
178
178
impl error:: Error for Error {
179
+ // TODO: Remove this method entirely on the next breaking semver release.
180
+ #[ allow( deprecated) ]
179
181
fn description ( & self ) -> & str {
180
182
use self :: ErrorKind :: * ;
181
183
match self . kind {
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ impl From<hir::Error> for Error {
40
40
}
41
41
42
42
impl error:: Error for Error {
43
+ // TODO: Remove this method entirely on the next breaking semver release.
44
+ #[ allow( deprecated) ]
43
45
fn description ( & self ) -> & str {
44
46
match * self {
45
47
Error :: Parse ( ref x) => x. description ( ) ,
Original file line number Diff line number Diff line change @@ -91,6 +91,8 @@ pub enum ErrorKind {
91
91
}
92
92
93
93
impl ErrorKind {
94
+ // TODO: Remove this method entirely on the next breaking semver release.
95
+ #[ allow( deprecated) ]
94
96
fn description ( & self ) -> & str {
95
97
use self :: ErrorKind :: * ;
96
98
match * self {
@@ -113,6 +115,8 @@ impl ErrorKind {
113
115
}
114
116
115
117
impl error:: Error for Error {
118
+ // TODO: Remove this method entirely on the next breaking semver release.
119
+ #[ allow( deprecated) ]
116
120
fn description ( & self ) -> & str {
117
121
self . kind . description ( )
118
122
}
@@ -126,6 +130,8 @@ impl fmt::Display for Error {
126
130
127
131
impl fmt:: Display for ErrorKind {
128
132
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
133
+ // TODO: Remove this on the next breaking semver release.
134
+ #[ allow( deprecated) ]
129
135
f. write_str ( self . description ( ) )
130
136
}
131
137
}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ pub enum Error {
19
19
}
20
20
21
21
impl :: std:: error:: Error for Error {
22
+ // TODO: Remove this method entirely on the next breaking semver release.
23
+ #[ allow( deprecated) ]
22
24
fn description ( & self ) -> & str {
23
25
match * self {
24
26
Error :: Syntax ( ref err) => err,
You can’t perform that action at this time.
0 commit comments