Skip to content

Commit

Permalink
Fix clippy::upper-case-acronyms (#697)
Browse files Browse the repository at this point in the history
* Fix `clippy::upper-case-acronyms`

* Fix typo

* Add `#[cfg(test)]` to get rid of dead code warning
  • Loading branch information
cmichi committed Feb 22, 2021
1 parent f76ecb4 commit 01f3e7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/lang/codegen/src/generator/dispatch.rs
Expand Up @@ -411,7 +411,7 @@ impl Dispatch<'_> {
/// ## Example
///
/// Given prefix of `"Message"` and selector with bytes `0xDEADBEEF` we
/// generate the following idenfitier: `__ink_Message_0xDEADBEEF`
/// generate the following identifier: `__ink_Message_0xdeadbeef`
///
/// This way it is clear that this is an ink! generated identifier and even
/// encodes the unique selector bytes to make the identifier unique.
Expand All @@ -428,7 +428,7 @@ impl Dispatch<'_> {
ir::CallableKind::Constructor => "Constructor",
};
quote::format_ident!(
"__ink_{}_0x{:02X}{:02X}{:02X}{:02X}",
"__ink_{}_0x{:02x}{:02x}{:02x}{:02x}",
prefix,
selector_bytes[0],
selector_bytes[1],
Expand Down
1 change: 1 addition & 0 deletions crates/storage/src/test_utils.rs
Expand Up @@ -200,6 +200,7 @@ macro_rules! fuzz_storage {
}

/// Asserts that the storage is empty, without any leftovers.
#[cfg(test)]
pub fn assert_storage_clean() {
let contract_id =
ink_env::test::get_current_contract_account_id::<ink_env::DefaultEnvironment>()
Expand Down

0 comments on commit 01f3e7c

Please sign in to comment.