Skip to content

diffguard-lsp/server.rs:494: variables used in format! string — uninlined_format_args lint #595

@EffortlessSteven

Description

@EffortlessSteven

At crates/diffguard-lsp/src/server.rs:494, a variable is used in a format! string using positional syntax instead of inline format args syntax.

Clippy warning:

warning: variables can be used directly in the `format!` string
   --> crates/diffguard-lsp/src/server.rs:494:30
    |
494 |         format!("\"{}\"", escaped)
    |              ^^^^^^^^^^^^^^^^^^^
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.92.0/index.html#uninlined_format_args

Fix: change format!("\"{}\"", escaped) to format!("\"{escaped}\"").

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions