Skip to content

Commit b0a0d03

Browse files
committed
Ignore Error description deprecation warnings
This commit allows warnings on the description() impl for Error types. description is soft deprecated in 1.41.0, to use the Display impl or to_string() instead, but the warning message seems to be just compile noise for now.
1 parent fa26686 commit b0a0d03

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

api_generator/src/rest_spec/parallel_downloading.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ impl std::fmt::Display for DownloadSpecsErrors {
134134
}
135135

136136
impl StdError for DownloadSpecsErrors {
137+
#[allow(warnings)]
137138
fn description(&self) -> &str {
138139
match self {
139140
DownloadSpecsErrors::IoErr(err) => err.description(),

elasticsearch/src/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ impl From<BuildError> for Error {
7373
}
7474

7575
impl error::Error for Error {
76+
#[allow(warnings)]
7677
fn description(&self) -> &str {
7778
match *self {
7879
Error::Build(ref err) => err.description(),

elasticsearch/src/http/transport.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ impl From<reqwest::Error> for BuildError {
4242
}
4343

4444
impl error::Error for BuildError {
45+
#[allow(warnings)]
4546
fn description(&self) -> &str {
4647
match *self {
4748
BuildError::Io(ref err) => err.description(),

0 commit comments

Comments
 (0)