summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Stock <stuart@int08h.com>2020-03-21 11:29:03 -0500
committerStuart Stock <stuart@int08h.com>2020-03-21 11:29:03 -0500
commite13d6fdfd1317a69b7b10a69f8206634bb69dda9 (patch)
tree0658c7cf5377b08073b5e7104d3d9db97c54b65a
parent32f11aa3a12692bcc97fe8e06893bc608db30489 (diff)
downloadroughenough-e13d6fdfd1317a69b7b10a69f8206634bb69dda9.zip
Remove deprecated `std::error::Error::description` calls
-rw-r--r--src/kms/awskms.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kms/awskms.rs b/src/kms/awskms.rs
index aed1056..e4bc3eb 100644
--- a/src/kms/awskms.rs
+++ b/src/kms/awskms.rs
@@ -52,7 +52,7 @@ pub mod inner {
let region_part = parts.get(3).expect("region is missing");
let region = match Region::from_str(region_part) {
Ok(r) => r,
- Err(e) => return Err(KmsError::InvalidConfiguration(e.description().to_string())),
+ Err(e) => return Err(KmsError::InvalidConfiguration(e.to_string())),
};
Ok(AwsKms {
@@ -89,7 +89,7 @@ pub mod inner {
))
}
}
- Err(e) => Err(KmsError::OperationFailed(e.description().to_string())),
+ Err(e) => Err(KmsError::OperationFailed(e.to_string())),
}
}
@@ -118,7 +118,7 @@ pub mod inner {
))
}
}
- Err(e) => Err(KmsError::OperationFailed(e.description().to_string())),
+ Err(e) => Err(KmsError::OperationFailed(e.to_string())),
}
}
}