You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
you take the argument as an allocated Vec, but you only iterate over references of its members via .iter, afterwards freeing that allocation. Better to either take a &[T] as above, or consume the vector via into_iter (or just … in topics as that will also consume the vec)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reflect on the different iteration styles into_iter, iter, iter_mut, vs &, &mut.
for example here:
rust_arroyo/src/backends/local/broker.rs
Line 75 in 1ce4b64
you take the argument as an allocated Vec, but you only iterate over references of its members via .iter, afterwards freeing that allocation. Better to either take a &[T] as above, or consume the vector via into_iter (or just … in topics as that will also consume the vec)
The text was updated successfully, but these errors were encountered: