Unverified Commit f8d3d3be authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Enable clippy for `rand-extension` example again (#735)

* Enable clippy for `rand-extension` example again

* Debug `cargo-spellcheck`

* Print `cargo-spellcheck` version

* Revert "Print `cargo-spellcheck` version"

This reverts commit 5a8beebf.

* Revert "Debug `cargo-spellcheck`"

This reverts commit 2198fe10.

* Clear up storage properly for fuzz tests

* Add debug flags for `cargo-spellcheck`

* Fix typo

* Revert "Add debug flags for `cargo-spellcheck`"

This reverts commit c93306df.
parent 513cb761
Pipeline #129685 failed with stages
in 7 minutes and 30 seconds
......@@ -247,22 +247,16 @@ examples-clippy-std:
- job: clippy-std
artifacts: false
script:
# Revert as soon as the clippy nightly ice fix lands
- for example in examples/*/; do
if [ "$example" != "examples/rand-extension/" ]; then
cargo clippy --verbose --manifest-path ${example}/Cargo.toml -- -D warnings;
fi
cargo clippy --verbose --manifest-path ${example}/Cargo.toml -- -D warnings;
done
examples-clippy-wasm:
stage: examples
<<: *docker-env
script:
# Revert as soon as the clippy nightly ice fix lands
- for example in examples/*/; do
if [ "$example" != "examples/rand-extension/" ]; then
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
fi
cargo clippy --verbose --manifest-path ${example}/Cargo.toml --no-default-features --target wasm32-unknown-unknown -- -D warnings;
done
examples-contract-build:
......
......@@ -127,7 +127,7 @@ impl EnvInstance {
Ok(())
}
/// Resets the off-chain environment to unintialized state.
/// Resets the off-chain environment to uninitialized state.
pub fn reset(&mut self) {
self.accounts.reset();
self.exec_context.clear();
......
......@@ -146,9 +146,10 @@ macro_rules! fuzz_storage {
let pulled2: $collection_type = crate::traits::pull_spread_root(&mut root_key.clone());
assert_eq!(pulled, pulled2);
// we clear the object from storage and assert that everything was
// we clear the objects from storage and assert that everything was
// removed without any leftovers.
SpreadLayout::clear_spread(&pulled2, &mut ptr.clone());
SpreadLayout::clear_spread(&pulled, &mut ptr.clone());
crate::test_utils::assert_storage_clean();
Ok(())
......@@ -185,9 +186,10 @@ macro_rules! fuzz_storage {
assert_eq!(pulled, pulled2);
assert_eq!(pulled2, instance2);
// we clear the object from storage and assert that everything was
// we clear the objects from storage and assert that everything was
// removed without any leftovers.
SpreadLayout::clear_spread(&pulled2, &mut ptr.clone());
SpreadLayout::clear_spread(&pulled, &mut ptr.clone());
crate::test_utils::assert_storage_clean();
Ok(())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment