Skip to content

Commit

Permalink
Ran make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fdamstra committed Apr 11, 2024
1 parent 2544ea4 commit 77213b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sources/aws_s3/sqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ pub(super) enum IngestorNewError {
timeout: u64,
},
#[snafu(display("Invalid value for max_number_of_messages {}", messages))]
InvalidNumberOfMessages {
messages: u32,
},
InvalidNumberOfMessages { messages: u32 },
}

#[allow(clippy::large_enum_variant)]
Expand Down Expand Up @@ -252,7 +250,7 @@ impl Ingestor {
) -> Result<Ingestor, IngestorNewError> {
if config.max_number_of_messages < 1 || config.max_number_of_messages > 10 {
return Err(IngestorNewError::InvalidNumberOfMessages {
messages: config.max_number_of_messages
messages: config.max_number_of_messages,
});
}
let state = Arc::new(State {
Expand Down

0 comments on commit 77213b8

Please sign in to comment.