Code within try block still panics when calling unwrap on a None value

前端 未结 0 831
半阙折子戏
半阙折子戏 2021-01-19 05:09
#![feature(try_blocks)]
pub fn is_valid(code: &str) -> bool {
    let result: Result = try {
        code.chars()
            .filter(|x| !x.i         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题