fix uninlined_format_args clippy warnings (#16452)

I noticed some clippy errors while running clippy under 1.88.
```
error: variables can be used directly in the `format!` string
   --> src/config_files.rs:204:25
    |
204 |                         warn!("AutoLoading: {:?}", path);
    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
    = note: `-D clippy::uninlined-format-args` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::uninlined_format_args)]`
```
And this pr is going to fix this.

## Release notes summary - What our users need to know
NaN

## Tasks after submitting
NaN
This commit is contained in:
Wind
2025-08-17 18:41:36 +08:00
committed by GitHub
parent 0b8531ed9d
commit a40f6d5cba
11 changed files with 28 additions and 28 deletions

View File

@@ -82,7 +82,7 @@ pub fn evaluate_file(
.expect("internal error: missing filename");
let mut working_set = StateWorkingSet::new(engine_state);
trace!("parsing file: {}", file_path_str);
trace!("parsing file: {file_path_str}");
let block = parse(&mut working_set, Some(file_path_str), &file, false);
if let Some(warning) = working_set.parse_warnings.first() {

View File

@@ -450,7 +450,7 @@ fn loop_iteration(ctx: LoopContext) -> (bool, Stack, Reedline) {
start_time = std::time::Instant::now();
if history.sync_on_enter {
if let Err(e) = line_editor.sync_history() {
warn!("Failed to sync history: {}", e);
warn!("Failed to sync history: {e}");
}
}
@@ -934,7 +934,7 @@ fn do_run_cmd(
entry_num: usize,
use_color: bool,
) -> Reedline {
trace!("eval source: {}", s);
trace!("eval source: {s}");
let mut cmds = s.split_whitespace();

View File

@@ -38,7 +38,7 @@ pub(crate) fn highlight_syntax(
line: &str,
cursor: usize,
) -> HighlightResult {
trace!("highlighting: {}", line);
trace!("highlighting: {line}");
let config = stack.get_config(engine_state);
let highlight_resolved_externals = config.highlight_resolved_externals;