mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
![]() Add allow-mixed-uninlined-format-args config Implement `allow-mixed-uninlined-format-args` config param to change the behavior of the `uninlined_format_args` lint. Now it is a part of `style` per [Zulip chat](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.60uninlined_format_args.60.20category), and won't propose inlining in case of a mixed usage, e.g. `print!("{} {}", var, 1+2)`. If the user sets `allow-mixed-uninlined-format-args` config param to `false`, the lint would behave like it did before -- proposing to inline args even in the mixed case. --- changelog: [`uninlined_format_args`]: Added a new config `allow-mixed-uninlined-format-args` to allow the lint, if only some arguments can be inlined [#9865](https://github.com/rust-lang/rust-clippy/pull/9865) changelog: Moved [`uninlined_format_args`] to `style` (Now warn-by-default) [#9865](https://github.com/rust-lang/rust-clippy/pull/9865) |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |