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

util: Fix warning #717

Closed
wants to merge 2 commits into from
Closed
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 tower/src/util/call_all/ordered.rs
Original file line number Diff line number Diff line change
@@ -168,7 +168,7 @@
}

fn push(&mut self, future: F) {
FuturesOrdered::push(self, future)
FuturesOrdered::push_back(self, future)

Check failure on line 171 in tower/src/util/call_all/ordered.rs

GitHub Actions / check-msrv

no function or associated item named `push_back` found for struct `FuturesOrdered<_>` in the current scope
}

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<Option<F::Output>> {

Unchanged files with check annotations Beta

/// Tracks an in-flight request by reference count.
#[derive(Debug)]
pub struct Handle(RefCount);

Check warning on line 48 in tower/src/load/pending_requests.rs

GitHub Actions / check-stable

field `0` is never read

Check warning on line 48 in tower/src/load/pending_requests.rs

GitHub Actions / test-versions (stable)

field `0` is never read

Check warning on line 48 in tower/src/load/pending_requests.rs

GitHub Actions / test-versions (nightly)

field `0` is never read

Check warning on line 48 in tower/src/load/pending_requests.rs

GitHub Actions / test-versions (beta)

field `0` is never read
// ===== impl PendingRequests =====
let mut r = HasherRng::default();
match super::sample_floyd2(&mut r, 2) {
[0, 1] | [1, 0] => (),
err => panic!("{err:?}"),

Check warning on line 177 in tower/src/util/rng.rs

GitHub Actions / check-stable

panic message contains an unused formatting placeholder

Check warning on line 177 in tower/src/util/rng.rs

GitHub Actions / test-versions (stable)

panic message contains an unused formatting placeholder

Check warning on line 177 in tower/src/util/rng.rs

GitHub Actions / test-versions (nightly)

panic message contains an unused formatting placeholder

Check warning on line 177 in tower/src/util/rng.rs

GitHub Actions / test-versions (beta)

panic message contains an unused formatting placeholder
}
}
}