Skip to content

Commit

Permalink
rustfmt: format string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonz committed Sep 2, 2021
1 parent 88fef10 commit 4e9be8d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
max_width = 100
wrap_comments = true
format_strings = true
error_on_line_overflow = true
group_imports = "StdExternalCrate"
imports_granularity = "Module"
22 changes: 18 additions & 4 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,12 @@ impl RepoCommandHelper {
Some(RefTarget::Conflict { adds, .. }) => {
for current_target in adds {
if current_target == old_checkout {
writeln!(ui, "Branch {}'s target was rewritten, but not updating it since it's conflicted", branch_name)?;
writeln!(
ui,
"Branch {}'s target was rewritten, but not updating it \
since it's conflicted",
branch_name
)?;
}
}
}
Expand All @@ -415,7 +420,8 @@ impl RepoCommandHelper {
if evolve_result.num_failed > 0 {
writeln!(
ui,
"Failed to rebase {} descendant commits onto updated working copy (run `jj evolve`)",
"Failed to rebase {} descendant commits onto updated working copy (run \
`jj evolve`)",
evolve_result.num_failed
)?;
}
Expand Down Expand Up @@ -730,7 +736,12 @@ fn update_branches_after_rewrite(ui: &mut Ui, mut_repo: &mut MutableRepo) -> io:
if new_evolution.is_obsolete(current_target)
&& !old_evolution.is_obsolete(current_target)
{
writeln!(ui, "Branch {}'s target was obsoleted, but not updating it since it's conflicted", branch_name )?;
writeln!(
ui,
"Branch {}'s target was obsoleted, but not updating it since it's \
conflicted",
branch_name
)?;
}
}
}
Expand Down Expand Up @@ -985,7 +996,10 @@ fn get_app<'a, 'b>() -> App<'a, 'b> {
)
.subcommand(
SubCommand::with_name("walkrevs")
.about("Walk revisions that are ancestors of the second argument but not ancestors of the first")
.about(
"Walk revisions that are ancestors of the second argument but not ancestors \
of the first",
)
.arg(Arg::with_name("unwanted").index(1).required(true))
.arg(Arg::with_name("wanted").index(2).required(true)),
)
Expand Down

0 comments on commit 4e9be8d

Please sign in to comment.