Skip to content

Commit 217af48

Browse files
author
Zelda Hessler
authored
Clean up dependency usage for aws-types crate (#3704)
_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent b583a2f commit 217af48

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

aws/rust-runtime/aws-types/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-types"
3-
version = "1.3.1"
3+
version = "1.3.2"
44
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
55
description = "Cross-service types for the AWS SDK."
66
edition = "2021"
@@ -18,7 +18,6 @@ aws-smithy-types = { path = "../../../rust-runtime/aws-smithy-types" }
1818
aws-smithy-runtime = { path = "../../../rust-runtime/aws-smithy-runtime", optional = true }
1919
aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["client"] }
2020
tracing = "0.1"
21-
http = "0.2.6"
2221
# cargo does not support optional test dependencies, so to completely disable rustls
2322
# we need to add the webpki-roots feature here.
2423
# https://github.com/rust-lang/cargo/issues/1596
@@ -29,6 +28,7 @@ http = "0.2.4"
2928
tempfile = "3"
3029
tracing-test = "=0.2.5"
3130
tokio = { version = "1", features = ["rt", "macros"] }
31+
aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["http-02x"] }
3232

3333
[build-dependencies]
3434
rustc_version = "0.4.0"

aws/rust-runtime/aws-types/src/request_id.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,12 @@ pub fn apply_request_id(builder: ErrorMetadataBuilder, headers: &Headers) -> Err
7272

7373
#[cfg(test)]
7474
mod tests {
75-
use super::*;
75+
use crate::request_id::{apply_request_id, RequestId, AWS_REQUEST_ID};
7676
use aws_smithy_runtime_api::client::orchestrator::HttpResponse;
77+
use aws_smithy_runtime_api::client::result::SdkError;
78+
use aws_smithy_runtime_api::http::Headers;
7779
use aws_smithy_types::body::SdkBody;
80+
use aws_smithy_types::error::ErrorMetadata;
7881
use http::{HeaderValue, Response};
7982

8083
#[test]

0 commit comments

Comments
 (0)