-
Notifications
You must be signed in to change notification settings - Fork 8
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
Node Dropped After filter_map
#8
Comments
I'm guessing this might have been fixed with Aidoku/Aidoku@b1e18ed (something I intended to do a long time ago), but you can wait until that's in the public build to test and see. |
the source Skittyblock/aidoku-community-sources#434 was written and tested with Aidoku/Aidoku@99d2907, and the #4 had been fixed, but this issue ( |
alright, I'll look into it further. |
Found the issue; it is indeed arr.clone()
.filter_map(|mut value| {
value.1 = false;
if value.kind() == aidoku::std::Kind::Node {
Some(unsafe { aidoku::std::html::Node::from(value.0) })
} else {
None
}
})
.for_each(|node| println!("fm:{}", node.outer_html().read())); |
code:
output:
The text was updated successfully, but these errors were encountered: