rust忽略Result

阅读量: searchstar 2021-07-15 16:42:39
Categories: Tags:
fn main() {
    let _ = std::fs::remove_dir_all("tmp");
}

原文:https://stackoverflow.com/questions/51141672/how-do-i-ignore-an-error-returned-from-a-rust-function-and-proceed-regardless