rust忽略Result

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

posted @ 2024-09-28 14:09  寻找繁星  阅读(4)  评论(0)    收藏  举报