From f84f9ba8fa43a88f78dae59b8e22a77d436993a5 Mon Sep 17 00:00:00 2001 From: Thomas Cameron Date: Thu, 21 Dec 2023 03:12:51 +0900 Subject: [PATCH] RFC30: Refactoring blob (#2850) ## Motivation and Context This is a sub-PR of https://github.com/awslabs/smithy-rs/pull/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 --- rust-runtime/aws-smithy-types/src/blob.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rust-runtime/aws-smithy-types/src/blob.rs b/rust-runtime/aws-smithy-types/src/blob.rs index ab7ae30d3c..ec8c7e6e37 100644 --- a/rust-runtime/aws-smithy-types/src/blob.rs +++ b/rust-runtime/aws-smithy-types/src/blob.rs @@ -34,7 +34,6 @@ impl AsRef<[u8]> for Blob { #[cfg(all(aws_sdk_unstable, feature = "serde-serialize"))] mod serde_serialize { use super::*; - use crate::base64; use serde::Serialize; impl Serialize for Blob { @@ -54,7 +53,6 @@ mod serde_serialize { #[cfg(all(aws_sdk_unstable, feature = "serde-deserialize"))] mod serde_deserialize { use super::*; - use crate::base64; use serde::{de::Visitor, Deserialize}; struct HumanReadableBlobVisitor; @@ -68,7 +66,7 @@ mod serde_deserialize { where E: serde::de::Error, { - match base64::decode(v) { + match crate::base64::decode(v) { Ok(inner) => Ok(Blob { inner }), Err(e) => Err(E::custom(e)), }