Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix: code improvements from precommit lint

hippietraild6fab8149251
diff --git a/harper-cli/src/main.rs b/harper-cli/src/main.rs
index 9960c0c53..895010539 100644
--- a/harper-cli/src/main.rs
+++ b/harper-cli/src/main.rs
@@ -249,14 +249,11 @@ fn main() -> anyhow::Result<()> {
!= arg_annot.unwrap().chars().collect()
{
different_annot = true;
- status_summary.push_str(
- format!("\n Your annotations differ from the dictionary.\n").as_str(),
- );
+ status_summary
+ .push_str("\n Your annotations differ from the dictionary.\n");
} else {
- status_summary.push_str(
- format!("\n Your annotations are the same as the dictionary.\n")
- .as_str(),
- );
+ status_summary
+ .push_str("\n Your annotations are the same as the dictionary.\n");
}
}