Skip to content

Commit

Permalink
Passed through clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Helios-vmg committed Oct 27, 2023
1 parent 817f3cc commit 6c4efc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ where
V: Storable,
Ref: ink_storage_traits::StorageLayout,
{
let x = Ref::layout as u64;
let x = Ref::layout as usize;
let x = ((x | (x >> 32)) & 0xFFFFFFFF) as u32;
set_contract_storage(&x, value)
}
Expand Down Expand Up @@ -466,7 +466,7 @@ where
/// When the test_instantiate feature is used, the contract is allowed to
/// return normally. This feature should only be used for integration tests.
#[cfg(feature = "test_instantiate")]
pub fn return_value<R>(return_flags: ReturnFlags, return_value: &R) -> ()
pub fn return_value<R>(return_flags: ReturnFlags, return_value: &R)
where
R: scale::Encode,
{
Expand Down
2 changes: 1 addition & 1 deletion crates/env/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub trait EnvBackend {
/// The `flags` parameter can be used to revert the state changes of the
/// entire execution if necessary.
#[cfg(feature = "test_instantiate")]
fn return_value<R>(&mut self, flags: ReturnFlags, return_value: &R) -> ()
fn return_value<R>(&mut self, flags: ReturnFlags, return_value: &R)
where
R: scale::Encode;

Expand Down
2 changes: 1 addition & 1 deletion crates/env/src/engine/off_chain/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl EnvBackend for EnvInstance {
}

#[cfg(feature = "test_instantiate")]
fn return_value<R>(&mut self, _flags: ReturnFlags, return_value: &R) -> ()
fn return_value<R>(&mut self, _flags: ReturnFlags, return_value: &R)
where
R: scale::Encode,
{
Expand Down

0 comments on commit 6c4efc6

Please sign in to comment.