Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
fix: appease newest version of `clippy`
Elijah Potter734f7547db62
diff --git a/harper-core/src/spell/mod.rs b/harper-core/src/spell/mod.rsindex 7e9f02a11..91124f2d4 100644--- a/harper-core/src/spell/mod.rs+++ b/harper-core/src/spell/mod.rs@@ -22,7 +22,7 @@ pub struct FuzzyMatchResult<'a> {metadata: WordMetadata,}-impl<'a> PartialOrd for FuzzyMatchResult<'a> {+impl PartialOrd for FuzzyMatchResult<'_> {fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {self.edit_distance.partial_cmp(&other.edit_distance)}diff --git a/harper-ls/src/pos_conv.rs b/harper-ls/src/pos_conv.rsindex 93b9e11c0..4598ce63c 100644--- a/harper-ls/src/pos_conv.rs+++ b/harper-ls/src/pos_conv.rs@@ -3,7 +3,6 @@ use tower_lsp::lsp_types::{Position, Range};/// This module includes various conversions from the index-based [`Span`]s that/// Harper uses, and the Ranges that the LSP uses.-pub fn span_to_range(source: &[char], span: Span) -> Range {let start = index_to_position(source, span.start);let end = index_to_position(source, span.end);