Skip to content

Commit

Permalink
Change visibility of key segment constants to private
Browse files Browse the repository at this point in the history
  • Loading branch information
james-chf committed Aug 30, 2022
1 parent cd3be78 commit 1e72843
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions shared/src/ledger/eth_bridge/storage/eth_msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ pub fn prefix() -> Key {
.expect("should always be able to construct this key")
}

#[allow(missing_docs)]
pub const BODY_KEY_SEGMENT: &str = "body";
#[allow(missing_docs)]
pub const SEEN_KEY_SEGMENT: &str = "seen";
#[allow(missing_docs)]
pub const SEEN_BY_KEY_SEGMENT: &str = "seen_by";
#[allow(missing_docs)]
pub const VOTING_POWER_KEY_SEGMENT: &str = "voting_power";
const BODY_KEY_SEGMENT: &str = "body";
const SEEN_KEY_SEGMENT: &str = "seen";
const SEEN_BY_KEY_SEGMENT: &str = "seen_by";
const VOTING_POWER_KEY_SEGMENT: &str = "voting_power";

/// Generator for the keys under which details of an [`EthereumEvent`] is stored
pub struct Keys {
Expand Down
6 changes: 2 additions & 4 deletions shared/src/ledger/eth_bridge/storage/wrapped_erc20s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ pub fn prefix() -> Key {
.expect("should always be able to construct this key")
}

#[allow(missing_docs)]
pub const BALANCE_KEY_SEGMENT: &str = "balance";
#[allow(missing_docs)]
pub const SUPPLY_KEY_SEGMENT: &str = "supply";
const BALANCE_KEY_SEGMENT: &str = "balance";
const SUPPLY_KEY_SEGMENT: &str = "supply";

/// Generator for the keys under which details of an ERC20 token are stored
pub struct Keys {
Expand Down

0 comments on commit 1e72843

Please sign in to comment.