Skip to content

Commit

Permalink
style(clippy-lint): use .first() instead of .get(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-wondersmith committed Nov 20, 2024
1 parent 5c2f7d2 commit 10b735b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testcontainers/src/runners/async_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ mod tests {

assert_eq!(
expected_capability,
capabilities.get(0).expect("No capabilities added"),
capabilities.first().expect("No capabilities added"),
"cap_add must contain {expected_capability}"
);

Expand All @@ -671,7 +671,7 @@ mod tests {

assert_eq!(
expected_capability,
capabilities.get(0).expect("No capabilities dropped"),
capabilities.first().expect("No capabilities dropped"),
"cap_drop must contain {expected_capability}"
);

Expand Down

0 comments on commit 10b735b

Please sign in to comment.