Skip to content

Commit

Permalink
Remove extraneous newline from stdout for --show-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
snowsignal committed Jan 11, 2024
1 parent 14221b6 commit 84a1a2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion crates/ruff_cli/src/commands/show_settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub(crate) fn show_settings(
if let Some(settings_path) = pyproject_config.path.as_ref() {
writeln!(writer, "Settings path: {settings_path:?}")?;
}
writeln!(writer, "{settings}")?;
write!(writer, "{settings}")?;

Ok(())
}
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,5 @@ formatter.magic_trailing_comma = respect
formatter.docstring_code_format = disabled
formatter.docstring_code_line_width = dynamic


----- stderr -----

0 comments on commit 84a1a2c

Please sign in to comment.