Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Clippy lint errors #1122

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion server/svix-server/src/queue/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ mod tests {
/// equal to the mock message with the given message_id.
async fn assert_recv(rx: &mut TaskQueueConsumer, message_id: &str) {
assert_eq!(
*rx.receive_all().await.unwrap().get(0).unwrap().task,
*rx.receive_all().await.unwrap().first().unwrap().task,
mock_message(message_id.to_owned())
)
}
Expand Down
2 changes: 1 addition & 1 deletion server/svix-server/src/queue/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ pub mod tests {

let test_key: Vec<(String, i32)> = pool.zpopmin(TEST_QUEUE, 1).await.unwrap();

assert_eq!(test_key.get(0).unwrap().0, v);
assert_eq!(test_key.first().unwrap().0, v);

let should_be_none: Vec<(String, i32)> = pool.zpopmin(TEST_LEGACY, 1).await.unwrap();
assert!(should_be_none.is_empty());
Expand Down
2 changes: 1 addition & 1 deletion server/svix-server/tests/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async fn test_no_redirects_policy() {
.await
.unwrap();

let attempt = attempts.data.get(0);
let attempt = attempts.data.first();

if let Some(attempt) = attempt {
assert_eq!(attempt.response_status_code, 308);
Expand Down
Loading