Skip to content

Commit 0f2a7ab

Browse files
committed
fix: use inline format strings in linting utils
- Update format strings to use inline syntax (tool -> {tool}) - Resolves clippy::uninlined_format_args lint errors - Ensures compatibility with both stable and nightly toolchains - Tested with both Rust stable (1.90.0) and nightly (1.92.0)
1 parent 9188388 commit 0f2a7ab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/linting/src/utils.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ pub fn is_command_available(command: &str) -> bool {
2222
///
2323
/// Returns an error if npm is not available or if the installation fails.
2424
pub fn install_npm_tool(tool: &str) -> Result<()> {
25-
info!("Installing {}...", tool);
25+
info!("Installing {tool}...");
2626

2727
let output = Command::new("npm").args(["install", "-g", tool]).output()?;
2828

2929
if output.status.success() {
30-
info!("{} installed successfully", tool);
30+
info!("{tool} installed successfully");
3131
Ok(())
3232
} else {
3333
let stderr = String::from_utf8_lossy(&output.stderr);
34-
error!("Failed to install {}: {}", tool, stderr);
35-
Err(anyhow::anyhow!("Failed to install {}", tool))
34+
error!("Failed to install {tool}: {stderr}");
35+
Err(anyhow::anyhow!("Failed to install {tool}"))
3636
}
3737
}

0 commit comments

Comments
 (0)