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

chore: Disallow prints to stdout #2404

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

mondeja
Copy link
Contributor

@mondeja mondeja commented Mar 4, 2024

Prevents PRs like #2402

@@ -270,6 +270,7 @@ where
if let Some(data) = static_data.get(path.path()) {
path.add_params(data);
}
#[allow(clippy::print_stdout)]
for path in path.into_paths() {
println!("building static route: {}", path);
Copy link
Contributor Author

@mondeja mondeja Mar 4, 2024

Choose a reason for hiding this comment

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

I'm not sure if this print statement is really needed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks -- let's just leave it for now

@mondeja mondeja changed the title Explicitly disallow prints to stdout chore: Explicitly disallow prints to stdout Mar 4, 2024
@mondeja mondeja changed the title chore: Explicitly disallow prints to stdout chore: Disallow prints to stdout Mar 5, 2024
Copy link
Collaborator

@gbj gbj left a comment

Choose a reason for hiding this comment

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

Thanks, this looks great!

@@ -270,6 +270,7 @@ where
if let Some(data) = static_data.get(path.path()) {
path.add_params(data);
}
#[allow(clippy::print_stdout)]
for path in path.into_paths() {
println!("building static route: {}", path);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks -- let's just leave it for now

@gbj gbj merged commit 7928f61 into leptos-rs:main Mar 8, 2024
40 of 60 checks passed
@mondeja mondeja deleted the disallow-println branch March 8, 2024 18:47
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