mirror of
https://github.com/perstarkse/minne.git
synced 2026-06-29 05:16:26 +02:00
chore: git-hooks rustfmt and clippy
This commit is contained in:
@@ -190,9 +190,7 @@ pub fn convert_beir_documents(
|
||||
|
||||
pub fn corpus_doc_id(paragraph_id: &str, dataset: DatasetKind) -> Option<String> {
|
||||
let prefix = format!("{}-", dataset.source_prefix());
|
||||
paragraph_id
|
||||
.strip_prefix(&prefix)
|
||||
.map(str::to_string)
|
||||
paragraph_id.strip_prefix(&prefix).map(str::to_string)
|
||||
}
|
||||
|
||||
fn resolve_qrels_path(raw_dir: &Path) -> Result<PathBuf> {
|
||||
|
||||
Reference in New Issue
Block a user