mirror of
https://github.com/milvus-io/milvus.git
synced 2026-07-21 10:15:43 +00:00
enhance: run rust format (#43447)
Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
+6
-1
@@ -10,7 +10,12 @@ use lindera::dictionary::{load_dictionary_from_kind, DictionaryKind};
|
||||
async fn download(params: &fetch::FetchParams) -> Result<()> {
|
||||
fetch::fetch(params, CcCedictBuilder::new())
|
||||
.await
|
||||
.map_err(|e| TantivyBindingError::InternalError(format!("fetch cc_cedict failed with error: {}", e.to_string())))
|
||||
.map_err(|e| {
|
||||
TantivyBindingError::InternalError(format!(
|
||||
"fetch cc_cedict failed with error: {}",
|
||||
e.to_string()
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "lindera-cc-cedict"))]
|
||||
|
||||
+6
-1
@@ -10,7 +10,12 @@ use lindera::dictionary::{load_dictionary_from_kind, DictionaryKind};
|
||||
async fn download(params: &fetch::FetchParams) -> Result<()> {
|
||||
fetch::fetch(params, IpadicBuilder::new())
|
||||
.await
|
||||
.map_err(|e| TantivyBindingError::InternalError(format!("fetch ipadic failed with error: {}", e.to_string())))
|
||||
.map_err(|e| {
|
||||
TantivyBindingError::InternalError(format!(
|
||||
"fetch ipadic failed with error: {}",
|
||||
e.to_string()
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "lindera-ipadic"))]
|
||||
|
||||
Vendored
+6
-1
@@ -10,7 +10,12 @@ use lindera::dictionary::{load_dictionary_from_kind, DictionaryKind};
|
||||
async fn download(params: &fetch::FetchParams) -> Result<()> {
|
||||
fetch::fetch(params, IpadicNeologdBuilder::new())
|
||||
.await
|
||||
.map_err(|e| TantivyBindingError::InternalError(format!("fetch ipadic-neologd failed with error: {}", e.to_string())))
|
||||
.map_err(|e| {
|
||||
TantivyBindingError::InternalError(format!(
|
||||
"fetch ipadic-neologd failed with error: {}",
|
||||
e.to_string()
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "lindera-ipadic-neologd"))]
|
||||
|
||||
+6
-1
@@ -10,7 +10,12 @@ use lindera::dictionary::{load_dictionary_from_kind, DictionaryKind};
|
||||
async fn download(params: &fetch::FetchParams) -> Result<()> {
|
||||
fetch::fetch(params, KoDicBuilder::new())
|
||||
.await
|
||||
.map_err(|e| TantivyBindingError::InternalError(format!("fetch ko-dic failed with error: {}", e.to_string())))
|
||||
.map_err(|e| {
|
||||
TantivyBindingError::InternalError(format!(
|
||||
"fetch ko-dic failed with error: {}",
|
||||
e.to_string()
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "lindera-ko-dic"))]
|
||||
|
||||
+6
-1
@@ -10,7 +10,12 @@ use lindera::dictionary::{load_dictionary_from_kind, DictionaryKind};
|
||||
async fn download(params: &fetch::FetchParams) -> Result<()> {
|
||||
fetch::fetch(params, UnidicBuilder::new())
|
||||
.await
|
||||
.map_err(|e| TantivyBindingError::InternalError(format!("fetch unidic failed with error: {}", e.to_string())))
|
||||
.map_err(|e| {
|
||||
TantivyBindingError::InternalError(format!(
|
||||
"fetch unidic failed with error: {}",
|
||||
e.to_string()
|
||||
))
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "lindera-unidic"))]
|
||||
|
||||
Reference in New Issue
Block a user