Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed May 9, 2023
1 parent b8f8a08 commit ea55f7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/rome_cli/src/execute/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions crates/rome_cli/src/execute/std_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit ea55f7c

Please sign in to comment.