mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-23 03:51:00 +00:00
Remove unnecessary attribute to suppress clippy
This commit is contained in:
parent
996dc309f7
commit
578768d7df
1 changed files with 2 additions and 3 deletions
|
@ -90,8 +90,8 @@ impl Searcher {
|
||||||
}
|
}
|
||||||
open_searcher = Self::open(path, tokenizers);
|
open_searcher = Self::open(path, tokenizers);
|
||||||
}
|
}
|
||||||
#[allow(clippy::match_wild_err_arm)]
|
|
||||||
let searcher = match open_searcher {
|
let searcher = match open_searcher {
|
||||||
|
Ok(s) => s,
|
||||||
Err(Error::Search(e)) => match e {
|
Err(Error::Search(e)) => match e {
|
||||||
SearcherError::WriteLockAcquisitionError => panic!(
|
SearcherError::WriteLockAcquisitionError => panic!(
|
||||||
r#"
|
r#"
|
||||||
|
@ -117,8 +117,7 @@ Then try to restart Plume
|
||||||
),
|
),
|
||||||
e => Err(e).unwrap(),
|
e => Err(e).unwrap(),
|
||||||
},
|
},
|
||||||
Err(_) => panic!("Unexpected error while opening search index"),
|
_ => panic!("Unexpected error while opening search index"),
|
||||||
Ok(s) => s,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
searcher
|
searcher
|
||||||
|
|
Loading…
Reference in a new issue