Skip to content

Commit de21929

Browse files
committed
Fix clippy errors
1 parent d38b9b9 commit de21929

File tree

514 files changed

+890
-1020
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

514 files changed

+890
-1020
lines changed

crates/amzn-codewhisperer-client/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ pub(crate) fn base_client_runtime_plugins(
16701670

16711671
let default_retry_partition = "codewhispererruntime";
16721672
let default_retry_partition = match config.region() {
1673-
Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{}", region)),
1673+
Some(region) => ::std::borrow::Cow::from(format!("{default_retry_partition}-{region}")),
16741674
None => ::std::borrow::Cow::from(default_retry_partition),
16751675
};
16761676

crates/amzn-codewhisperer-client/src/protocol_serde/shape_access_denied_exception.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) fn de_access_denied_exception_json_err(
3535
},
3636
other => {
3737
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
38-
format!("expected object key or end object, found: {:?}", other),
38+
format!("expected object key or end object, found: {other:?}"),
3939
));
4040
},
4141
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_application_properties.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ where
5959
},
6060
other => {
6161
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
62-
format!("expected object key or end object, found: {:?}", other),
62+
format!("expected object key or end object, found: {other:?}"),
6363
));
6464
},
6565
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_attributes_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ where
2929
},
3030
other => {
3131
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
32-
format!("expected object key or end object, found: {:?}", other),
32+
format!("expected object key or end object, found: {other:?}"),
3333
));
3434
},
3535
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_by_user_analytics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ where
4242
},
4343
other => {
4444
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
45-
format!("expected object key or end object, found: {:?}", other),
45+
format!("expected object key or end object, found: {other:?}"),
4646
));
4747
},
4848
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_code_generation_status.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ where
4848
},
4949
other => {
5050
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
51-
format!("expected object key or end object, found: {:?}", other),
51+
format!("expected object key or end object, found: {other:?}"),
5252
));
5353
},
5454
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ where
4141
},
4242
other => {
4343
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
44-
format!("expected object key or end object, found: {:?}", other),
44+
format!("expected object key or end object, found: {other:?}"),
4545
));
4646
},
4747
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_conflict_exception.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub(crate) fn de_conflict_exception_json_err(
3535
},
3636
other => {
3737
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
38-
format!("expected object key or end object, found: {:?}", other),
38+
format!("expected object key or end object, found: {other:?}"),
3939
));
4040
},
4141
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_create_artifact_upload_url.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub(crate) fn de_create_artifact_upload_url(
198198
},
199199
other => {
200200
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
201-
format!("expected object key or end object, found: {:?}", other),
201+
format!("expected object key or end object, found: {other:?}"),
202202
));
203203
},
204204
}

crates/amzn-codewhisperer-client/src/protocol_serde/shape_create_subscription_token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pub(crate) fn de_create_subscription_token(
207207
},
208208
other => {
209209
return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
210-
format!("expected object key or end object, found: {:?}", other),
210+
format!("expected object key or end object, found: {other:?}"),
211211
));
212212
},
213213
}

0 commit comments

Comments
 (0)