Skip to content

Commit f84f9ba

Browse files
thomas-k-cameronZelda Hessler
and
Zelda Hessler
authored
RFC30: Refactoring blob (#2850)
## Motivation and Context This is a sub-PR of #2615. Refactors `blob.rs` file. ## Description Some test was failing due to unnecessary import; This PR fixes it. ## Testing NA ## Checklist NA ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: Zelda Hessler <[email protected]>
1 parent 06e66d1 commit f84f9ba

File tree

1 file changed

+1
-3
lines changed
  • rust-runtime/aws-smithy-types/src

1 file changed

+1
-3
lines changed

rust-runtime/aws-smithy-types/src/blob.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ impl AsRef<[u8]> for Blob {
3434
#[cfg(all(aws_sdk_unstable, feature = "serde-serialize"))]
3535
mod serde_serialize {
3636
use super::*;
37-
use crate::base64;
3837
use serde::Serialize;
3938

4039
impl Serialize for Blob {
@@ -54,7 +53,6 @@ mod serde_serialize {
5453
#[cfg(all(aws_sdk_unstable, feature = "serde-deserialize"))]
5554
mod serde_deserialize {
5655
use super::*;
57-
use crate::base64;
5856
use serde::{de::Visitor, Deserialize};
5957

6058
struct HumanReadableBlobVisitor;
@@ -68,7 +66,7 @@ mod serde_deserialize {
6866
where
6967
E: serde::de::Error,
7068
{
71-
match base64::decode(v) {
69+
match crate::base64::decode(v) {
7270
Ok(inner) => Ok(Blob { inner }),
7371
Err(e) => Err(E::custom(e)),
7472
}

0 commit comments

Comments
 (0)