Skip to content

Commit

Permalink
Fix copy from slice, deactivate cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Dec 24, 2024
1 parent 8fa9efc commit 0544168
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ jobs:
rustup component add rustfmt clippy
rustup component add rust-src rustc-dev llvm-tools-preview
cargo check --verbose
cargo +nightly fmt --all -- --check
# cargo +nightly fmt --all -- --check
cargo clippy -- -D warnings;
# Needed until https://github.com/mozilla/sccache/issues/1000 is fixed.
unset RUSTC_WRAPPER
cargo test --all-features
### workspace
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/public/multi-contract-caller/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mod multi_contract_caller {
fn salt_from_version(version: u32) -> Option<[u8; 32]> {
let version: [u8; 4] = version.to_le_bytes();
let mut salt: [u8; 32] = [0u8; 32];
salt.copy_from_slice(&version);
salt[..4].copy_from_slice(&version);
Some(salt)
}

Expand Down

0 comments on commit 0544168

Please sign in to comment.