rust `?` couldn‘t convert the error to `std::string::String`the question mark operation (`?`)
rust 带?写法报错const CONFIG: Config Config {width: 80.0,height: 30.0,scale: 1.0,
};
let json_str serde_json::to_string(&size)?;
println!("size: {}", json_str);? couldnt convert the error to std::string::String
the question mark operatio…
2026/6/28 6:11:03