Skip to content

Commit

Permalink
sweeten enhance beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Feb 29, 2024
1 parent 7b4a1bd commit bfe46df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions account-decoder/src/parse_sysvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub fn parse_sysvar(data: &[u8], pubkey: &Pubkey) -> Result<SysvarAccountType, P
.iter()
.map(|entry| UiStakeHistoryEntry {
epoch: entry.0,
stake_history: entry.1.clone(),
stake_history: entry.1,
})
.collect();
SysvarAccountType::StakeHistory(stake_history)
Expand Down Expand Up @@ -340,7 +340,7 @@ mod test {
activating: 2,
deactivating: 3,
};
stake_history.add(1, stake_history_entry.clone());
stake_history.add(1, stake_history_entry);
let stake_history_sysvar = create_account_for_test(&stake_history);
assert_eq!(
parse_sysvar(&stake_history_sysvar.data, &sysvar::stake_history::id()).unwrap(),
Expand Down

0 comments on commit bfe46df

Please sign in to comment.