Skip to content

Commit 2f48bdc

Browse files
committed
Clippy 1.66.1
1 parent 133a6f5 commit 2f48bdc

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

rust_dev_preview/iam/src/bin/create-role.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ mod test {
112112
response: "error body"
113113
);
114114

115-
let response = make_role(&client, "{}".into(), "test_role".into()).await;
115+
let response = make_role(&client, "{}", "test_role").await;
116116
assert!(response.starts_with("Error creating role: "));
117117
}
118118
}

rust_dev_preview/iam/src/iam-service-lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ mod test_create_policy {
5353
response: include_str!("../testing/test_create_policy_response_success.xml")
5454
);
5555

56-
let response = create_policy(&client, "{}".into(), "test_role".into()).await;
56+
let response = create_policy(&client, "{}", "test_role").await;
5757
assert!(response.is_ok());
5858
}
5959

@@ -65,7 +65,7 @@ mod test_create_policy {
6565
response: include_str!("../testing/test_create_policy_response_malformed.xml")
6666
);
6767

68-
let response = create_policy(&client, "{}".into(), "test_role".into()).await;
68+
let response = create_policy(&client, "{}", "test_role").await;
6969
assert!(response.is_err());
7070
}
7171
}

rust_dev_preview/s3/src/s3-service-lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ mod test {
347347
let file_name = file_name.to_str().unwrap().to_string();
348348

349349
let mut file = File::create(dir).await.unwrap();
350-
file.write("test file".as_bytes()).await.unwrap();
350+
let written_bytes = file.write("test file".as_bytes()).await.unwrap();
351+
352+
println!("Wrote bytes to s3 {written_bytes}");
351353

352354
file_name
353355
};

rust_dev_preview/transcribestreaming/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async fn main() -> Result<(), Error> {
7171
let client = Client::new(&shared_config);
7272

7373
let input_stream = stream! {
74-
let pcm = pcm_data(&*audio_file);
74+
let pcm = pcm_data(&audio_file);
7575
for chunk in pcm.chunks(CHUNK_SIZE) {
7676
// Sleeping isn't necessary, but emphasizes the streaming aspect of this
7777
tokio::time::sleep(Duration::from_millis(100)).await;

0 commit comments

Comments
 (0)