Skip to content

Commit

Permalink
fix: appease newest version of clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-potter committed Nov 28, 2024
1 parent 47069a8 commit 734f754
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion harper-core/src/spell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
1 change: 0 additions & 1 deletion harper-ls/src/pos_conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 734f754

Please sign in to comment.