Skip to content

Commit

Permalink
Allow deprecation to Error::description
Browse files Browse the repository at this point in the history
We cannot simply remove it as it's a breaking change.

Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Oct 29, 2022
1 parent 80588ef commit 27b1160
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ impl GlobError {
}

impl Error for GlobError {
#[allow(deprecated)]
fn description(&self) -> &str {
self.error.description()
}
Expand Down

0 comments on commit 27b1160

Please sign in to comment.