diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /cli/tools/lint.rs | |
parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tools/lint.rs')
-rw-r--r-- | cli/tools/lint.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index ba30c546a..0f81ec89d 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -219,7 +219,7 @@ pub fn print_rules_list(json: bool) { }) .collect(); let json_str = serde_json::to_string_pretty(&json_rules).unwrap(); - println!("{}", json_str); + println!("{json_str}"); } else { // The rules should still be printed even if `--quiet` option is enabled, // so use `println!` here instead of `info!`. @@ -345,12 +345,12 @@ impl LintReporter for PrettyLintReporter { )), ); - eprintln!("{}\n", message); + eprintln!("{message}\n"); } fn visit_error(&mut self, file_path: &str, err: &AnyError) { - eprintln!("Error linting: {}", file_path); - eprintln!(" {}", err); + eprintln!("Error linting: {file_path}"); + eprintln!(" {err}"); } fn close(&mut self, check_count: usize) { @@ -393,8 +393,8 @@ impl LintReporter for CompactLintReporter { } fn visit_error(&mut self, file_path: &str, err: &AnyError) { - eprintln!("Error linting: {}", file_path); - eprintln!(" {}", err); + eprintln!("Error linting: {file_path}"); + eprintln!(" {err}"); } fn close(&mut self, check_count: usize) { |