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

surpress warnings when specifying --loop and --loop --count #45

Merged
merged 1 commit into from
Feb 12, 2022

Conversation

h-mikisato
Copy link
Contributor

When specifying --loop and --loop --count options, some compile warning is shown while compile.
This PR is for surpressing them.

Target warnings are:

  • "Unused imports" when not using std::io::prelude in script
  • "Unnecessary braces around function argument" in some cases
    • ex. sample command in rust-script.org $ cat now.ers | rust-script --count --loop "|l,n| println!(\"{:>6}: {}\", n, l.trim_right())"
  • "Trait objects without an explicit dyn" at output_any variable
  • "Variable does not need to be mutable" at stdin variable

These are tested in rustc 1.57.0.

Thank you.

@fornwall fornwall merged commit 582e1ec into fornwall:master Feb 12, 2022
@fornwall
Copy link
Owner

Thanks! This is now published in version 0.20.0.

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