build_helper::fs

Function ignore_not_found

Source
pub fn ignore_not_found<Op>(op: Op) -> Result<()>
where Op: FnMut() -> Result<()>,
Expand description

Helper to ignore std::io::ErrorKind::NotFound, but still propagate other std::io::ErrorKinds.