Skip to content

Commit

Permalink
Use conventional special self notation (#11990) (#11997)
Browse files Browse the repository at this point in the history
(cherry picked from commit 46aac48)

Co-authored-by: Ryo Onodera <[email protected]>
  • Loading branch information
mergify[bot] and ryoqun authored Sep 2, 2020
1 parent 2f3fced commit 0b0710d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3253,15 +3253,15 @@ impl Bank {
}
}

fn recheck_cross_program_support(self: &mut Bank) {
fn recheck_cross_program_support(&mut self) {
if OperatingMode::Stable == self.operating_mode() {
self.set_cross_program_support(self.epoch() >= 63);
} else {
self.set_cross_program_support(true);
}
}

fn recheck_compute_budget(self: &mut Bank) {
fn recheck_compute_budget(&mut self) {
let compute_budget = if OperatingMode::Stable == self.operating_mode() {
if self.epoch() >= u64::MAX - 1 {
ComputeBudget::default()
Expand All @@ -3282,7 +3282,7 @@ impl Bank {
self.set_compute_budget(compute_budget);
}

fn reconfigure_token2_native_mint(self: &mut Bank) {
fn reconfigure_token2_native_mint(&mut self) {
let reconfigure_token2_native_mint = match self.operating_mode() {
OperatingMode::Development => true,
OperatingMode::Preview => self.epoch() == 95,
Expand Down

0 comments on commit 0b0710d

Please sign in to comment.