Update needed for Rust v1.77.0
error: this `let...else` may be rewritten with the `?` operator --> build/make/tools/aconfig/aconfig/src/commands.rs:320:5 | 320 | / let Some(package) = parsed_flags.first().map(|pf| pf.package()) else { 321 | | return None; 322 | | }; | |______^ help: replace it with: `let package = parsed_flags.first().map(|pf| pf.package())?;` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ques tion_mark = note: `-D clippy::question-mark` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::question_mark)]` error: this `let...else` may be rewritten with the `?` operator --> build/make/tools/aconfig/aconfig/src/commands.rs:330:5 | 330 | / let Some(container) = parsed_flags.parsed_flag.first().map(|pf| pf.container()) else { 331 | | return None; 332 | | }; | |______^ help: replace it with: `let container = parsed_flags.parsed_flag.first().map(|pf| pf.cont ainer())?;` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ques tion_mark error: aborting due to 2 previous errors Bug: 330185853 Test: ./test_compiler.py --prebuilt-path dist/rust-dev.tar.xz --target aosp_cf_x86_64_phone --image Change-Id: I00e22fc75137e8bd6fe28a8c20f8a1c3bbe711fd
Loading
Please register or sign in to comment