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

Clippy on all targets #212

Merged
merged 1 commit into from
Sep 21, 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 .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
Loading