Task #74037 - bootc-202510060315.gee53d462e2-1/scan-results.err
back to task #74037download
Error: COMPILER_WARNING (CWE-704):
bootc-202510060315.gee53d462e2/vendor/libz-sys/src/smoke.c: scope_hint: In function 'main'
bootc-202510060315.gee53d462e2/vendor/libz-sys/src/smoke.c:4:10: warning[-Wpointer-to-int-cast]: cast from pointer to integer of different size
# 4 | return (int) adler32;
# | ^
# 2|
# 3| int main() {
# 4|-> return (int) adler32;
# 5| }
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:78:5: warning: unneeded `return` statement
# |
# 78 | return true;
# | ^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# = note: `#[warn(clippy::needless_return)]` on by default
# help: remove `return`
# |
# 78 - return true;
# 78 + true
# |
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:295:5: warning: doc list item without indentation
# |
# 295 | /// Usually this will be obtained by remounting the EROFS image to a temporary location
# | ^
# |
# = help: if this is supposed to be its own paragraph, add a blank line
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
# = note: `#[warn(clippy::doc_lazy_continuation)]` on by default
# help: indent this line
# |
# 295 | /// Usually this will be obtained by remounting the EROFS image to a temporary location
# | ++
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:300:5: warning: doc list item without indentation
# |
# 300 | /// again be usually obtained by mounting the new EROFS image to a temporary location. If merging
# | ^
# |
# = help: if this is supposed to be its own paragraph, add a blank line
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
# help: indent this line
# |
# 300 | /// again be usually obtained by mounting the new EROFS image to a temporary location. If merging
# | ++
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:301:5: warning: doc list item without indentation
# |
# 301 | /// it will be necessary to make the `/etc` for the deployment writeable
# | ^
# |
# = help: if this is supposed to be its own paragraph, add a blank line
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
# help: indent this line
# |
# 301 | /// it will be necessary to make the `/etc` for the deployment writeable
# | ++
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:314:6: warning: very complex type used. Consider factoring parts into `type` definitions
# |
# 314 | ) -> anyhow::Result<(
# | ______^
# 315 | | Directory<CustomMetadata>,
# 316 | | Directory<CustomMetadata>,
# 317 | | Option<Directory<CustomMetadata>>,
# 318 | | )> {
# | |__^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
# = note: `#[warn(clippy::type_complexity)]` on by default
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:338:5: warning: unneeded `return` statement
# |
# 338 | return Ok((pristine_etc_files, current_etc_files, new_etc_files));
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# help: remove `return`
# |
# 338 - return Ok((pristine_etc_files, current_etc_files, new_etc_files));
# 338 + Ok((pristine_etc_files, current_etc_files, new_etc_files))
# |
Error: CLIPPY_WARNING:
crates/etc-merge/src/lib.rs:441:35: warning: useless use of `format!`
# |
# 441 | let entry = entry.context(format!("Getting entry"))?;
# | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Getting entry".to_string()`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
# = note: `#[warn(clippy::useless_format)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/cli.rs:995:5: warning: unneeded `return` statement
# |
# 995 | return Ok(target);
# | ^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# = note: `#[warn(clippy::needless_return)]` on by default
# help: remove `return`
# |
# 995 - return Ok(target);
# 995 + Ok(target)
# |
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1577:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
# |
# 1577 | let source_image = opts
# | ________________________^
# 1578 | | .source_opts
# 1579 | | .source_imgref
# 1580 | | .as_ref()
# 1581 | | .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
# |
# 1577 ~ let source_image = opts
# 1578 + .source_opts
# 1579 + .source_imgref.as_deref()
# |
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1841:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
# |
# 1841 | let source_image = opts
# | ________________________^
# 1842 | | .source_opts
# 1843 | | .source_imgref
# 1844 | | .as_ref()
# 1845 | | .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
# |
# 1841 ~ let source_image = opts
# 1842 + .source_opts
# 1843 + .source_imgref.as_deref()
# |
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:2093:24: warning: called `.as_ref().map(|s| s.as_str())` on an `Option` value
# |
# 2093 | let source_image = opts
# | ________________________^
# 2094 | | .source_opts
# 2095 | | .source_imgref
# 2096 | | .as_ref()
# 2097 | | .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
# |
# 2093 ~ let source_image = opts
# 2094 + .source_opts
# 2095 + .source_imgref.as_deref()
# |
Error: CLIPPY_WARNING:
crates/lib/src/parsers/bls_config.rs:16:5: warning: name `EFI` contains a capitalized acronym
# |
# 16 | EFI {
# | ^^^ help: consider making the acronym lowercase, except the initial letter (notice the capitalization): `Efi`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#upper_case_acronyms
# = note: `#[warn(clippy::upper_case_acronyms)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/parsers/grub_menuconfig.rs:118:22: warning: redundant guard
# |
# 118 | c if c == '\\' => {
# | ^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
# = note: `#[warn(clippy::redundant_guards)]` on by default
# help: try
# |
# 118 - c if c == '\\' => {
# 118 + '\\' => {
# |
Error: CLIPPY_WARNING:
crates/ostree-ext/src/container/store.rs:945:5: warning: this function has too many arguments (10/7)
# |
# 945 | / fn write_merge_commit_impl(
# 946 | | repo: &ostree::Repo,
# 947 | | base_commit: Option<&str>,
# 948 | | layer_commits: &[String],
# ... |
# 955 | | cancellable: Option<&gio::Cancellable>,
# 956 | | ) -> Result<Box<LayeredImageState>> {
# | |_______________________________________^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
# = note: `#[warn(clippy::too_many_arguments)]` on by default
Error: CLIPPY_WARNING:
crates/ostree-ext/src/container/store.rs:1044:22: warning: derefed type is same as origin
# |
# 1044 | let parent = base_commit.as_deref();
# | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `base_commit`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_option_as_deref
# = note: `#[warn(clippy::needless_option_as_deref)]` on by default
Error: CLIPPY_WARNING:
crates/ostree-ext/src/container/store.rs:1580:36: warning: using `clone` on type `Option<&History>` which implements the `Copy` trait
# |
# 1580 | let previous_description = history_entry
# | ____________________________________^
# 1581 | | .clone()
# | |____________________^ help: try removing the `clone` call: `history_entry`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
# = note: `#[warn(clippy::clone_on_copy)]` on by default
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:309:13: warning: returning the result of a `let` binding from a block
# |
# 308 | let path = find_command_path_for_filename(cli_structure, cmd_part);
# | ------------------------------------------------------------------- unnecessary `let` binding
# 309 | path
# | ^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
# = note: `#[warn(clippy::let_and_return)]` on by default
# help: return the expression directly
# |
# 308 ~
# 309 ~ find_command_path_for_filename(cli_structure, cmd_part)
# |
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:606:5: warning: empty string literal in `println!`
# |
# 606 | println!("");
# | ^^^^^^^^^--^
# | |
# | help: remove the empty string
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
# = note: `#[warn(clippy::println_empty_string)]` on by default
Error: CLIPPY_WARNING:
crates/xtask/src/man.rs:622:12: warning: this `map_or` can be simplified
# |
# 622 | if path
# | ____________^
# 623 | | .extension()
# 624 | | .and_then(|s| s.to_str())
# 625 | | .map_or(false, |e| e.chars().all(|c| c.is_numeric()))
# | |_________________________________________________________________^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
# = note: `#[warn(clippy::unnecessary_map_or)]` on by default
# help: use is_some_and instead
# |
# 625 - .map_or(false, |e| e.chars().all(|c| c.is_numeric()))
# 625 + .is_some_and(|e| e.chars().all(|c| c.is_numeric()))
# |
Error: CLIPPY_WARNING:
crates/xtask/src/xtask.rs:77:9: warning: unneeded `return` statement
# |
# 77 | return f(&sh);
# | ^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# = note: `#[warn(clippy::needless_return)]` on by default
# help: remove `return`
# |
# 77 - return f(&sh);
# 77 + f(&sh)
# |