Skip to content

Resolve uninlined_format_args clippy lint in demo #1511

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
merged 1 commit into from
Apr 24, 2025
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Apr 24, 2025

warning: variables can be used directly in the `format!` string
  --> demo/src/main.rs:51:5
   |
51 |     println!("blobid = {}", blobid);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
   = note: `-W clippy::uninlined-format-args` implied by `-W clippy::all`
   = help: to override `-W clippy::all` add `#[allow(clippy::uninlined_format_args)]`
help: change this to
   |
51 -     println!("blobid = {}", blobid);
51 +     println!("blobid = {blobid}");
   |

    warning: variables can be used directly in the `format!` string
      --> demo/src/main.rs:51:5
       |
    51 |     println!("blobid = {}", blobid);
       |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       |
       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
       = note: `-W clippy::uninlined-format-args` implied by `-W clippy::all`
       = help: to override `-W clippy::all` add `#[allow(clippy::uninlined_format_args)]`
    help: change this to
       |
    51 -     println!("blobid = {}", blobid);
    51 +     println!("blobid = {blobid}");
       |
@dtolnay dtolnay merged commit a6f75db into master Apr 24, 2025
38 checks passed
@dtolnay dtolnay deleted the printblobid branch April 24, 2025 03:20
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.

1 participant