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

Allow setting custom initial value for map observers via with_initial #2893

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mzfr
Copy link
Contributor

@mzfr mzfr commented Jan 26, 2025

Fixes #2447

As discussed here(#2447 (comment)) with @addisoncrump.

@domenukk
Copy link
Member

Thank you. Can you please fix clippy?

error: missing `#[must_use]` attribute on a method returning `Self`
   --> libafl/src/observers/map/mod.rs:671:5
    |
671 | /     pub fn with_initial(mut self, initial: T) -> Self {
672 | |         self.initial = initial;
673 | |         self
674 | |     }
    | |_____^

Otherwise looks good :)

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.

Most MapObservers have an unchangeable initial field
2 participants