(context: &'static str, repo: &R, offset: u64, source: io::Error)
| 453 | } |
| 454 | |
| 455 | fn with_segment_context<R: Repo>(context: &'static str, repo: &R, offset: u64, source: io::Error) -> io::Error { |
| 456 | io::Error::new( |
| 457 | source.kind(), |
| 458 | format!("{} [{}]: {}", segment_label(repo, offset), context, source), |
| 459 | ) |
| 460 | } |
| 461 | |
| 462 | /// Allocate [Options::max_segment_size] of space for [FileLike] |
| 463 | /// if the `fallocate` feature is enabled, |
no test coverage detected
searching dependent graphs…