> return Err(format_err!(
> "cannot open index {}: {}",
> full_path.to_string_lossy(),
> err,
> ));
>
> is:
>
> bail!("can't open index {} - {}", path.to_string_lossy(), err),
btw, I normally use the following instead:
bail!("can't open index {:?} - {}", path, err),