We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Problem
i am trying to do this:
... div { class: "flex flex-col", for group in my_vec.iter().as_slice().group_by(|a, b| a.from_id == b.from_id) { } } ...
with #![feature(slice_group_by)] add to the top in a mod.rs file and i get this:
#![feature(slice_group_by)]
mod.rs
message: index out of bounds: the len is 0 but the index is 0
removing the for loop doesn't cause panic. the for loop works fine on the rust playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=e8878294d72f9a525a8ed2cf2291ed28
Expected behavior
should not panic
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered:
The body of the for loop is rsx. You run into the same error if you try to use an empty rsx macro: rsx!{}
rsx!{}
If you are interested in fixing this issue, I would start in the rsx macro. We are indexing into an empty array somewhere. Maybe here?
dioxus/packages/rsx/src/lib.rs
Line 207 in 0166eaf
Sorry, something went wrong.
@ealmloff thanks for pointing out the source location. i shall look into this.
fix empty render causing panic (DioxusLabs#1769)
ccb1e0a
fix empty render causing panic (#1769) (#1774)
fd7c9e0
* fix empty render causing panic (#1769) * use an default root column instead of an empty root column * fix formatting * restore create.rs in core --------- Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
No branches or pull requests
Problem
i am trying to do this:
with
#![feature(slice_group_by)]
add to the top in amod.rs
file and i get this:removing the for loop doesn't cause panic.
the for loop works fine on the rust playground: https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=e8878294d72f9a525a8ed2cf2291ed28
Expected behavior
should not panic
Environment:
Questionnaire
The text was updated successfully, but these errors were encountered: