refactor(error): remove deprecated 'Error::description' method (#2092)
This commit is contained in:
committed by
Sean McArthur
parent
fb90d30c02
commit
0f13719873
@@ -205,15 +205,11 @@ impl Pending {
|
||||
|
||||
impl fmt::Display for UpgradeExpected {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str(self.description())
|
||||
write!(f, "upgrade expected but not completed")
|
||||
}
|
||||
}
|
||||
|
||||
impl StdError for UpgradeExpected {
|
||||
fn description(&self) -> &str {
|
||||
"upgrade expected but not completed"
|
||||
}
|
||||
}
|
||||
impl StdError for UpgradeExpected {}
|
||||
|
||||
// ===== impl Io =====
|
||||
|
||||
|
||||
Reference in New Issue
Block a user