Skip to content

Commit

Permalink
refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Oct 22, 2023
1 parent 016e602 commit 41058f6
Show file tree
Hide file tree
Showing 6 changed files with 371 additions and 23 deletions.
5 changes: 3 additions & 2 deletions src/algos/fzf_v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl Metric for FzfV1 {

#[inline]
fn distance(
&self,
&mut self,
query: FzfQuery<'_>, // helwo
candidate: &str, // Hello World!
) -> Option<Match<Self::Distance>> {
Expand Down Expand Up @@ -253,7 +253,7 @@ fn backward_pass(

/// TODO: docs
#[inline]
pub(super) fn calculate_score(
fn calculate_score(
query: &str,
candidate: &str,
range: Range<usize>,
Expand Down Expand Up @@ -506,6 +506,7 @@ pub(super) mod scheme {
use super::*;

/// TODO: docs
#[derive(Clone)]
pub struct Scheme {
pub bonus_boundary_white: Score,
pub bonus_boundary_delimiter: Score,
Expand Down
Loading

0 comments on commit 41058f6

Please sign in to comment.