mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
warning: Question mark operator is useless here
--> vmm/src/seccomp_filters.rs:493:5
|
493 | / Ok(SeccompFilter::new(
494 | | rules.into_iter().collect(),
495 | | SeccompAction::Trap,
496 | | )?)
| |_______^
|
= note: `#[warn(clippy::needless_question_mark)]` on by default
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: try
|
493 | SeccompFilter::new(
494 | rules.into_iter().collect(),
495 | SeccompAction::Trap,
496 | )
|
warning: Question mark operator is useless here
--> vmm/src/seccomp_filters.rs:507:5
|
507 | / Ok(SeccompFilter::new(
508 | | rules.into_iter().collect(),
509 | | SeccompAction::Log,
510 | | )?)
| |_______^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
help: try
|
507 | SeccompFilter::new(
508 | rules.into_iter().collect(),
509 | SeccompAction::Log,
510 | )
|
warning: Question mark operator is useless here
--> vmm/src/vm.rs:887:9
|
887 | Ok(CString::new(cmdline).map_err(Error::CmdLineCString)?)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `CString::new(cmdline).map_err(Error::CmdLineCString)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_question_mark
Signed-off-by: Rob Bradford <robert.bradford@intel.com>