Skip to content

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

fix(stats): remove redundant `to_string` call

Elijah Potter4870b34063bc
diff --git a/harper-stats/src/lib.rs b/harper-stats/src/lib.rs
index 739a29264..55e56eef3 100644
--- a/harper-stats/src/lib.rs
+++ b/harper-stats/src/lib.rs
@@ -35,7 +35,7 @@ impl Stats {
for tok in context {
if let TokenKind::Word(None) = tok.kind {
- summary.inc_misspelled_count(tok.content.to_string());
+ summary.inc_misspelled_count(&tok.content);
}
}
}