reintroduce anyhow

This commit is contained in:
marin postma
2021-06-15 17:39:07 +02:00
parent 439db1aae0
commit 02277ec2cf
36 changed files with 110 additions and 154 deletions

View File

@ -21,7 +21,7 @@ pub struct UpdateHandler {
}
impl UpdateHandler {
pub fn new(opt: &IndexerOpts) -> std::result::Result<Self, Box<dyn std::error::Error>> {
pub fn new(opt: &IndexerOpts) -> anyhow::Result<Self> {
let thread_pool = rayon::ThreadPoolBuilder::new()
.num_threads(opt.indexing_jobs.unwrap_or(0))
.build()?;