Skip to content

Remove TEMPLATE_DATA static #841

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

Merged

Conversation

pietroalbini
Copy link
Member

This PR removes the TEMPLATE_DATA static from the codebase, switching to a struct stored in the request extensions. This is a requirement for future refactorings. The PR can be reviewed commit-by-commit.

r? @Kixiron

Comment on lines +116 to +124
/// Simple function that returns the pre-defined value.
struct ReturnValue {
name: &'static str,
value: Value,
Copy link
Member

Choose a reason for hiding this comment

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

Good idea on this!

@pietroalbini pietroalbini force-pushed the remote-template-data-static branch from 47c4cef to 2b4091e Compare June 21, 2020 09:08
@pietroalbini pietroalbini merged commit 84fe0cb into rust-lang:master Jun 21, 2020
@pietroalbini pietroalbini deleted the remote-template-data-static branch June 21, 2020 09:49
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.

2 participants