Compare commits

..

1 Commits

Author SHA1 Message Date
Pascal Seitz
4f2e810b83 add From impl to BoxTokenStream, Bump tokenizer-api version 2023-06-23 18:54:03 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tantivy-tokenizer-api"
version = "0.1.0"
version = "0.1.1"
license = "MIT"
edition = "2021"
description = "Tokenizer API of tantivy"

View File

@@ -70,8 +70,7 @@ impl<'a> From<BoxTokenStream<'a>> for Box<dyn TokenStream + 'a> {
}
impl<'a, T> From<T> for BoxTokenStream<'a>
where
T: TokenStream + 'a,
where T: TokenStream + 'a
{
fn from(token_stream: T) -> BoxTokenStream<'a> {
BoxTokenStream(Box::new(token_stream))