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

Introduce lifetime to egui_plot::Plot to replace 'static fields #4435

Merged
merged 2 commits into from May 15, 2024

Conversation

Fabus1184
Copy link
Contributor

Shouldn't break anything, because when all arguments have a 'static lifetime (required without this PR), the Plot is also 'static and can be used like before.

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@emilk emilk added the egui_plot Related to egui_plot label May 10, 2024
@emilk
Copy link
Owner

emilk commented May 10, 2024

Needs fix for wasm. You can run scripts/clippy_wasm.sh to check locally

@Fabus1184 Fabus1184 requested a review from emilk May 11, 2024 09:21
@Fabus1184
Copy link
Contributor Author

@emilk can you merge this?

@emilk emilk changed the title Introduce lifetime to egui_plot::Plot to replace 'static fields Introduce lifetime to egui_plot::Plot to replace 'static fields May 15, 2024
@emilk emilk merged commit ce59e43 into emilk:master May 15, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui_plot Related to egui_plot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

egui_plot formatter, spacer etc. should not need to be 'static
2 participants