Skip to content

Commit d7baaa9

Browse files
precommit
1 parent 44233bd commit d7baaa9

File tree

2 files changed

+6
-3
lines changed
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang
  • rust-runtime/aws-smithy-types/src

2 files changed

+6
-3
lines changed

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/rustlang/RustWriter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package software.amazon.smithy.rust.codegen.core.rustlang
88
import org.intellij.lang.annotations.Language
99
import org.jsoup.Jsoup
1010
import org.jsoup.nodes.Element
11-
import software.amazon.smithy.rust.codegen.core.smithy.generators.RenderSerdeAttribute
1211
import software.amazon.smithy.codegen.core.CodegenException
1312
import software.amazon.smithy.codegen.core.Symbol
1413
import software.amazon.smithy.codegen.core.SymbolDependencyContainer
@@ -27,6 +26,7 @@ import software.amazon.smithy.model.traits.DocumentationTrait
2726
import software.amazon.smithy.rust.codegen.core.rustlang.Attribute.Companion.deprecated
2827
import software.amazon.smithy.rust.codegen.core.smithy.ModuleDocProvider
2928
import software.amazon.smithy.rust.codegen.core.smithy.RuntimeType
29+
import software.amazon.smithy.rust.codegen.core.smithy.generators.RenderSerdeAttribute
3030
import software.amazon.smithy.rust.codegen.core.smithy.isOptional
3131
import software.amazon.smithy.rust.codegen.core.smithy.protocols.serialize.ValueExpression
3232
import software.amazon.smithy.rust.codegen.core.smithy.rustType

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
#[cfg(all(
7+
aws_sdk_unstable,
8+
any(feature = "serde-deserialize", feature = "serde-serialize")
9+
))]
10+
use crate::base64;
611
#[cfg(all(aws_sdk_unstable, feature = "serde-serialize"))]
712
use serde::Serialize;
813
#[cfg(all(aws_sdk_unstable, feature = "serde-deserialize"))]
914
use serde::{de::Visitor, Deserialize};
10-
#[cfg(all(aws_sdk_unstable, any(feature = "serde-deserialize", feature = "serde-serialize")))]
11-
use crate::base64;
1215
/// Binary Blob Type
1316
///
1417
/// Blobs represent protocol-agnostic binary content.

0 commit comments

Comments
 (0)