diff --git a/src/splitting.rs b/src/splitting.rs index fbb06396..89a42dca 100644 --- a/src/splitting.rs +++ b/src/splitting.rs @@ -36,6 +36,21 @@ impl WordSplitter for Box { self.deref().split_points(word) } } + +impl WordSplitter for Box { + fn split_points(&self, word: &str) -> Vec { + use std::ops::Deref; + self.deref().split_points(word) + } +} + +impl WordSplitter for Box { + fn split_points(&self, word: &str) -> Vec { + use std::ops::Deref; + self.deref().split_points(word) + } +} + /* Alternative, also adds impls for specific Box i.e. Box impl WordSplitter for Box { fn split<'w>(&self, word: &'w str) -> Vec<(&'w str, &'w str, &'w str)> {