Skip to content

Commit

Permalink
Fix: Rust linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pier-oliviert committed Jul 15, 2022
1 parent 96a62ec commit 1bd507a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/directory/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ pub trait DirectoryClone {
}

impl<T> DirectoryClone for T
where T: 'static + Directory + Clone
where
T: 'static + Directory + Clone,
{
fn box_clone(&self) -> Box<dyn Directory> {
Box::new(self.clone())
Expand Down
3 changes: 2 additions & 1 deletion src/termdict/fst_termdict/termdict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ pub struct TermDictionaryBuilder<W> {
}

impl<W> TermDictionaryBuilder<W>
where W: Write
where
W: Write,
{
/// Creates a new `TermDictionaryBuilder`
pub fn create(w: W) -> io::Result<Self> {
Expand Down
4 changes: 3 additions & 1 deletion src/termdict/sstable_termdict/termdict.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ impl TermDictionary {
// Returns a search builder, to stream all of the terms
// within the Automaton
pub fn search<'a, A: Automaton + 'a>(&'a self, automaton: A) -> TermStreamerBuilder<'a, A>
where A::State: Clone {
where
A::State: Clone,
{
TermStreamerBuilder::<A>::new(self, automaton)
}

Expand Down

0 comments on commit 1bd507a

Please sign in to comment.