Task #66576 - added.err
back to task #66576download
Error: CLIPPY_WARNING: crates/lib/src/install.rs:1511:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value # | # 1511 | let source_image = opts # | ________________________^ # 1512 | | .source_opts # 1513 | | .source_imgref # 1514 | | .as_ref() # 1515 | | .map(|s| s.as_str()) # | |____________________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref # = note: `#[warn(clippy::option_as_ref_deref)]` on by default # help: consider using as_deref # | # 1511 ~ let source_image = opts # 1512 + .source_opts # 1513 + .source_imgref.as_deref() # | Error: CLIPPY_WARNING: crates/lib/src/install.rs:1765:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value # | # 1765 | let source_image = opts # | ________________________^ # 1766 | | .source_opts # 1767 | | .source_imgref # 1768 | | .as_ref() # 1769 | | .map(|s| s.as_str()) # | |____________________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref # help: consider using as_deref # | # 1765 ~ let source_image = opts # 1766 + .source_opts # 1767 + .source_imgref.as_deref() # | Error: CLIPPY_WARNING: crates/lib/src/install.rs:2026:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value # | # 2026 | let source_image = opts # | ________________________^ # 2027 | | .source_opts # 2028 | | .source_imgref # 2029 | | .as_ref() # 2030 | | .map(|s| s.as_str()) # | |____________________________^ # | # = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#option_as_ref_deref # help: consider using as_deref # | # 2026 ~ let source_image = opts # 2027 + .source_opts # 2028 + .source_imgref.as_deref() # |