dupcheck 0.1.0

Duplicate file checking functions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Unwraps a successful result or returns the error, with the path included in
/// the error description.
macro_rules! try_with_path {
    ($x:expr, $y:expr) => {{
        match $x {
            Ok(r) => r,
            Err(e) => return Err(io::Error::new(
                e.kind(),
                format!("{} ({})", $y.display(), e.description())
            ))
        }
    }}
}