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

Consider placing Config::format behind a feature flag. #1021

Closed
gibbz00 opened this issue Mar 30, 2024 · 0 comments · Fixed by #1022
Closed

Consider placing Config::format behind a feature flag. #1021

gibbz00 opened this issue Mar 30, 2024 · 0 comments · Fixed by #1022

Comments

@gibbz00
Copy link
Contributor

gibbz00 commented Mar 30, 2024

/// Configures the code generator to format the output code via `prettyplease`.
///
/// By default, this is enabled but if the `format` feature is not enabled this does
/// nothing.
pub fn format(&mut self, enabled: bool) -> &mut Self {

Think it is better to create a compile time error when someone is trying to enable/disable formatting when it isn't enabled.

gibbz00 added a commit to gibbz00/prost that referenced this issue Mar 30, 2024
gibbz00 added a commit to gibbz00/prost that referenced this issue Apr 6, 2024
gibbz00 added a commit to gibbz00/prost that referenced this issue Apr 27, 2024
github-merge-queue bot pushed a commit that referenced this issue Apr 28, 2024
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 a pull request may close this issue.

1 participant