Use conventional special self notation (#11990) (#11997)

(cherry picked from commit 46aac4819a)

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
mergify[bot]
2020-09-02 11:59:16 +00:00
committed by GitHub
parent 2f3fced8a8
commit 0b0710d522

View File

@ -3253,7 +3253,7 @@ 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 {
@ -3261,7 +3261,7 @@ impl Bank {
}
}
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()
@ -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,