Skip to content

Commit b887021

Browse files
fix: resolve clippy type mismatch for dynamo error
Signed-off-by: Palagiri Subba Reddy <subbareddy123sub@gmail.com>
1 parent 431fe10 commit b887021

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lore-aws/src/dynamodb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ impl DynamoDbImpl {
567567
T: DynamoDbQuery + 'static,
568568
{
569569
if matches!(query.select(), Some(Select::Count)) && query.limit().is_some() {
570-
return Err(aws_sdk_dynamodb::error::SdkError::construction_failure("Combining Select::Count and a limit is disallowed for paginated queries").into());
570+
return Err(crate::aws_error::AwsError::AwsSdkError(aws_sdk_dynamodb::error::SdkError::construction_failure("Combining Select::Count and a limit is disallowed for paginated queries")));
571571
}
572572

573573
if matches!(query.select(), Some(Select::Count)) && query.limit().is_some() {

0 commit comments

Comments
 (0)