Idiomatic way to ignore certain kinds of errors?

I might invert the logic here:

match std::fs::remove_file("/tmp/server.sock") {
    Err(err) if err.kind() == ErrorKind::NotFound => (),
    r => r?,
};

2 Likes