Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-k-cameron committed Apr 21, 2023
1 parent 924cec2 commit c12e9af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ List of changes:
- Core codegen code
- Add sensitive warning
- Add `serde` attributes
- Add `serde` attributes
- Import `serde` crate to enable `serde(skip)` on some namespaces
- Add `serde` crate behind unstable feature gate on `Cargo.toml`
Expand All @@ -173,7 +173,7 @@ meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client"
message = """
- SDK
- Implements `serde` support as described in RFC 30
- rust runtime
- Implements serde support to `number`, `blob`, `document`, `date time` and `error type`.
- `&'static str` on Error type is replaced with `Cow` to allow `serde` support. No breaking changes are introduced.
Expand Down
12 changes: 5 additions & 7 deletions rust-runtime/aws-smithy-types/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
*/

use crate::Number;
use std::collections::HashMap;
#[cfg(
any(
all(aws_sdk_unstable, feature = "serde-deserialize"),
all(aws_sdk_unstable, feature = "serde-serialize")
)
)]
#[cfg(any(
all(aws_sdk_unstable, feature = "serde-deserialize"),
all(aws_sdk_unstable, feature = "serde-serialize")
))]
use serde;
use std::collections::HashMap;
/* ANCHOR: document */

/// Document Type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
true,
false
]
}
}

0 comments on commit c12e9af

Please sign in to comment.