Deny overflowing (and lossy) integer type cast operations (#1895) #328
Annotations
5 errors and 1 warning
this `map_or` is redundant:
crates/build/src/workspace/manifest.rs#L605
error: this `map_or` is redundant
--> crates/build/src/workspace/manifest.rs:605:18
|
605 | .any(|v| v.as_str().map_or(false, |s| s == crate_type))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(v.as_str() == Some(crate_type))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
|
this `map_or` is redundant:
crates/build/src/workspace/manifest.rs#L277
error: this `map_or` is redundant
--> crates/build/src/workspace/manifest.rs:277:36
|
277 | crate_types.retain(|v| v.as_str().map_or(true, |s| s != crate_type));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(v.as_str() != Some(crate_type))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
|
this `map_or` is redundant:
crates/build/src/workspace/manifest.rs#L605
error: this `map_or` is redundant
--> crates/build/src/workspace/manifest.rs:605:18
|
605 | .any(|v| v.as_str().map_or(false, |s| s == crate_type))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(v.as_str() == Some(crate_type))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
|
this `map_or` is redundant:
crates/build/src/workspace/manifest.rs#L277
error: this `map_or` is redundant
--> crates/build/src/workspace/manifest.rs:277:36
|
277 | crate_types.retain(|v| v.as_str().map_or(true, |s| s != crate_type));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use a standard comparison instead: `(v.as_str() != Some(crate_type))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or
= note: `-D clippy::unnecessary-map-or` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_map_or)]`
|
Push Docker image to Docker Hub
buildx failed with: ERROR: failed to solve: process "/bin/sh -c apt-get -y update && apt-get -y install gcc=${GCC_VERSION} g++=${G_VERSION} musl-dev=${MUSL_V} libssl-dev pkg-config && if [ -n \"$CARGO_CONTRACT_GIT\" ]; then COMMAND=\"cargo install --git ${CARGO_CONTRACT_GIT}\" ; else COMMAND=\"cargo install cargo-contract --locked --version ${CARGO_CONTRACT_VERSION}\" ; fi && if [ -n \"$CARGO_CONTRACT_BRANCH\" ] && [ -n \"$CARGO_CONTRACT_GIT\" ]; then COMMAND=\"${COMMAND} --branch ${CARGO_CONTRACT_BRANCH}\" ; fi && if [ -n \"$CARGO_CONTRACT_REV\" ] && [ -n \"$CARGO_CONTRACT_GIT\" ]; then COMMAND=\"${COMMAND} --rev ${CARGO_CONTRACT_REV}\" ; fi && if [ -n \"$CARGO_CONTRACT_TAG\" ] && [ -n \"$CARGO_CONTRACT_GIT\" ]; then COMMAND=\"cargo install --git ${CARGO_CONTRACT_GIT} --tag ${CARGO_CONTRACT_TAG}\" ; fi && echo \"Executing ${COMMAND}\" && eval \"${COMMAND}\" && cargo +${RUST_LINTER_VERSION} install cargo-dylint dylint-link && cargo install cargo-dylint dylint-link && cargo contract new test && mkdir -p $DYLINT_DRIVER_PATH && cd test && cargo contract build --lint --verbose --release && cd .. && rm -rf test && apt-get remove -y gnupg libssl-dev pkg-config && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* && rm -rf ${CARGO_HOME}/\"registry\" ${CARGO_HOME}/\"git\" /root/.cache/sccache" did not complete successfully: exit code: 1
|
Push Docker image to Docker Hub
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
use-ink~cargo-contract~O49562.dockerbuild
|
159 KB |
|