-
Notifications
You must be signed in to change notification settings - Fork 283
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
Update indexmap dependency & fix compiler warnings #758
Conversation
Co-authored-by: Josh Stone <[email protected]>
Co-authored-by: Josh Stone <[email protected]>
Also this PR fixed an old problem with indexmap #466. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing as requested, but note that I'm not a maintainer here.
@@ -168,7 +168,7 @@ impl<F: Future> common::Drive<F> for FuturesOrdered<F> { | |||
} | |||
|
|||
fn push(&mut self, future: F) { | |||
FuturesOrdered::push(self, future) | |||
FuturesOrdered::push_back(self, future) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs futures-util v0.3.22
(or later).
@@ -174,7 +174,7 @@ mod tests { | |||
let mut r = HasherRng::default(); | |||
match super::sample_floyd2(&mut r, 2) { | |||
[0, 1] | [1, 0] => (), | |||
err => panic!("{err:?}"), | |||
err => panic!("{:?}", err), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, the previous format would be fine if the crate upgraded to 2021 edition -- which it could do with the new MSRV, but that might be a bigger change than desired right now.
@@ -91,7 +91,6 @@ tower-test = { version = "0.4", path = "../tower-test" } | |||
tracing = { version = "0.1.2", default-features = false, features = ["std"] } | |||
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt", "ansi"] } | |||
http = "0.2" | |||
lazy_static = "1.4.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is needed to fix the minimal version used in tests, per #670, or else you get:
error: cannot find macro `__lazy_static_internal` in this scope
--> [...]/sharded-slab-0.1.1/src/tid.rs:32:1
|
32 | / lazy_static! {
33 | | static ref REGISTRY: Registry = Registry {
34 | | next: AtomicUsize::new(0),
35 | | free: Mutex::new(VecDeque::new()),
36 | | };
37 | | }
| |_^
|
= note: this error originates in the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
Closing as a duplicate of #741. |
#741 proposes changing
get_ready_index_mut
's signature, but that would be a semver breaking change, so can wait for0.5
Also remove unused lazy_static dev dependency