Fixed findings

List of Findings

Error: CLIPPY_WARNING: [#def1]
netavark-1.12.2-build/src/network/core_utils.rs:196:20: warning: this manual char comparison can be written more succinctly
#      |
#  196 |             .split(|c| c == ':' || c == '-')
#      |                    ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using an array of `char`: `[':', '-']`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
#      = note: `#[warn(clippy::manual_pattern_char_comparison)]` on by default

Error: CLIPPY_WARNING: [#def2]
netavark-1.12.2-build/src/network/vlan.rs:339:26: warning: using `map_err` over `inspect_err`
#      |
#  339 |                         .map_err(|err| {
#      |                          ^^^^^^^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
#      = note: `#[warn(clippy::manual_inspect)]` on by default
#  help: try
#      |
#  339 ~                         .inspect_err(|err| {
#  340 |                             // If there is an error here most likely the name in the netns is already used,
#  ...
#  347 |                                 );
#  348 ~                             };
#      |

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-91.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namenetavark-1.13.0-2.fc42
diffbase-store-results-to/tmp/tmpe7ayunmt/netavark-1.13.0-2.fc42.tar.xz
diffbase-time-created2024-11-13 02:09:09
diffbase-time-finished2024-11-13 02:16:24
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpe7ayunmt/netavark-1.13.0-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpe7ayunmt/netavark-1.13.0-2.fc42.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-91.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namenetavark-1.12.2-1.fc41
store-results-to/tmp/tmpcrgdy9pc/netavark-1.12.2-1.fc41.tar.xz
time-created2024-11-13 02:00:14
time-finished2024-11-13 02:08:41
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpcrgdy9pc/netavark-1.12.2-1.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpcrgdy9pc/netavark-1.12.2-1.fc41.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9