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

Fix build #38

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Fix build #38

merged 1 commit into from
Jan 8, 2025

Conversation

ekr-cfa
Copy link
Collaborator

@ekr-cfa ekr-cfa commented Jan 8, 2025

@KOVALW I fixed this build for you. There were several distinct problems:

  1. Rust was having trouble doing the type inference on instance_map, so I told it specifically what the type was.
  2. You need to insert a boxed closure because that's what's stored in instance_map
  3. InterventionFn takes &Context, not &mut Context.
  4. I iterated over &instance_dict rather than instance_dict to avoid a move on iter.

I haven't reviewed the code or even run it, but this should fix the build.

@KOVALW KOVALW merged commit af5569c into wtk_facemask Jan 8, 2025
2 of 3 checks passed
@KOVALW KOVALW deleted the ekr_wtk_facemask branch January 8, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants