Skip to content

Commit

Permalink
fzf: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Nov 5, 2023
1 parent e9739fa commit ac202e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/algos/fzf/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ fn strip_leading_spaces(s: &str) -> &str {
}

/// TODO: docs
#[cfg(debug_assertions)]
#[cfg(feature = "tests")]
#[doc(hidden)]
pub fn parse(s: &str) -> FzfQuery<'static> {
let parser = Box::leak(Box::new(FzfParser::new()));
Expand Down Expand Up @@ -322,7 +322,7 @@ mod parse_tests {
}
}

#[cfg(debug_assertions)]
#[cfg(feature = "tests")]
#[doc(hidden)]
pub fn or_blocks(s: &str) -> impl Iterator<Item = Vec<String>> {
let mut buf = Vec::new();
Expand Down Expand Up @@ -385,7 +385,7 @@ mod or_blocks_tests {
}
}

#[cfg(debug_assertions)]
#[cfg(feature = "tests")]
#[doc(hidden)]
pub fn words(s: &str) -> impl Iterator<Item = String> {
let mut buf = Vec::new();
Expand Down
4 changes: 2 additions & 2 deletions src/algos/fzf/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use super::{query::*, *};
use crate::*;

/// TODO: docs
#[cfg_attr(docsrs, doc(cfg(any(feature = "fzf-v1", feature = "fzf-v2"))))]
#[derive(Default)]
#[cfg_attr(docsrs, doc(cfg(feature = "fzf-v1")))]
#[derive(Clone, Default)]
pub struct FzfV1 {
/// TODO: docs
case_sensitivity: CaseSensitivity,
Expand Down

0 comments on commit ac202e8

Please sign in to comment.