Skip to content

Commit

Permalink
Make into_u32 take self
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Oct 15, 2021
1 parent 5fc247f commit 4bde1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/env/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl ReturnFlags {
}

/// The flags used to change the behavior of a contract call.
#[derive(Debug, Default)]
#[derive(Copy, Clone, Debug, Default)]
pub struct CallFlags {
forward_input: bool,
clone_input: bool,
Expand Down Expand Up @@ -117,7 +117,7 @@ impl CallFlags {
///
/// This value is used to forward the call flag information to the
/// `contracts` pallet.
pub(crate) fn into_u32(&self) -> u32 {
pub(crate) fn into_u32(self) -> u32 {
const FORWARD_INPUT: u32 = 0b0000_0001;
const CLONE_INPUT: u32 = 0b0000_0010;
const TAIL_CALL: u32 = 0b0000_0100;
Expand Down

0 comments on commit 4bde1c3

Please sign in to comment.