Skip to content

Commit

Permalink
Clippy on all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed Sep 20, 2023
1 parent 6537e3c commit 5c613fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features -- -D warnings
args: --all-features --all-targets -- -D warnings

bench:
name: Bench
Expand Down
4 changes: 2 additions & 2 deletions limitador/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macro_rules! test_with_all_storage_impls {
#[tokio::test]
async fn [<$function _in_memory_storage>]() {
let rate_limiter =
RateLimiter::new_with_storage(Box::new(InMemoryStorage::default()));
RateLimiter::new_with_storage(Box::<InMemoryStorage>::default());
$function(&mut TestsLimiter::new_from_blocking_impl(rate_limiter)).await;
}

Expand Down Expand Up @@ -205,7 +205,7 @@ mod test {
vec!["app_id"],
);

for limit in vec![&lim1, &lim2].iter() {
for limit in [&lim1, &lim2] {
rate_limiter.add_limit(limit).await;
}
rate_limiter.delete_limit(&lim2).await.unwrap();
Expand Down

0 comments on commit 5c613fb

Please sign in to comment.