Skip to content

Commit

Permalink
chore: just format
Browse files Browse the repository at this point in the history
  • Loading branch information
hippietrail committed Mar 9, 2025
1 parent 99e0775 commit 7c45aa9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions harper-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,7 @@ fn main() -> anyhow::Result<()> {
"'{}' is already in the dictionary but not annotated.",
arg_bare_word
),
_ => format!(
"'{}' is not in the dictionary yet.",
arg_bare_word
),
_ => format!("'{}' is not in the dictionary yet.", arg_bare_word),
};

let mut different_annot = false;
Expand All @@ -257,7 +254,8 @@ fn main() -> anyhow::Result<()> {
);
} else {
status_summary.push_str(
format!("\n Your annotations are the same as the dictionary.\n").as_str(),
format!("\n Your annotations are the same as the dictionary.\n")
.as_str(),
);
}
}
Expand Down Expand Up @@ -287,7 +285,8 @@ fn main() -> anyhow::Result<()> {
};

let should_print_old_info = already_annotated;
let should_print_new_info = arg_annot.is_some() && (!already_annotated || different_annot);
let should_print_new_info =
arg_annot.is_some() && (!already_annotated || different_annot);

if should_print_old_info {
println!("Old, from the dictionary:");
Expand Down

0 comments on commit 7c45aa9

Please sign in to comment.