Remove unused lifetime

This commit is contained in:
Dirkjan Ochtman 2020-11-25 17:33:50 +01:00
parent 2164044eb1
commit a1f03e32fe
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ impl Segmenter {
///
/// Note: the `String` types used in this API are defined in the `smartstring` crate. Any
/// `&str` or `String` can be converted into the `String` used here by calling `into()` on it.
pub fn from_iters<'a, U, B>(unigrams: U, bigrams: B) -> Result<Self, Box<dyn Error>>
pub fn from_iters<U, B>(unigrams: U, bigrams: B) -> Result<Self, Box<dyn Error>>
where
U: Iterator<Item = Result<(String, f64), Box<dyn Error>>>,
B: Iterator<Item = Result<((String, String), f64), Box<dyn Error>>>,