diff --git a/crates/rome_cli/src/execute/mod.rs b/crates/rome_cli/src/execute/mod.rs index 62bec45b34b..daff479634b 100644 --- a/crates/rome_cli/src/execute/mod.rs +++ b/crates/rome_cli/src/execute/mod.rs @@ -208,7 +208,7 @@ pub(crate) fn execute_mode( // don't do any traversal if there's some content coming from stdin if let Some((path, content)) = mode.as_stdin_file() { let rome_path = RomePath::new(path); - std_in::run(session, &mode, rome_path, content.as_str(), &cli_options) + std_in::run(session, &mode, rome_path, content.as_str(), cli_options) } else if let TraversalMode::Migrate { write, configuration_path, diff --git a/crates/rome_cli/src/execute/std_in.rs b/crates/rome_cli/src/execute/std_in.rs index 0187703ef6d..93b76a8b291 100644 --- a/crates/rome_cli/src/execute/std_in.rs +++ b/crates/rome_cli/src/execute/std_in.rs @@ -125,10 +125,10 @@ pub(crate) fn run<'a>( } } else { let diagnostic = FormatDiffDiagnostic { - file_name: &*rome_path.display().to_string(), + file_name: &rome_path.display().to_string(), diff: ContentDiffAdvice { new: printed.as_code(), - old: &content, + old: content, }, }; diagnostics.push(rome_diagnostics::serde::Diagnostic::new(diagnostic));