From 00b5a4e220686600bbb1e468632c6bae244b5762 Mon Sep 17 00:00:00 2001 From: Alin Cruceat Date: Mon, 16 Dec 2024 12:20:41 +0200 Subject: [PATCH] clippy --- contracts/examples/lottery-esdt/src/lottery.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/examples/lottery-esdt/src/lottery.rs b/contracts/examples/lottery-esdt/src/lottery.rs index 4accfc9cb7..c1e801c72b 100644 --- a/contracts/examples/lottery-esdt/src/lottery.rs +++ b/contracts/examples/lottery-esdt/src/lottery.rs @@ -181,10 +181,10 @@ pub trait Lottery { } fn handle_awarding(&self, lottery_name: &ManagedBuffer) -> AwardingStatus { - if self.total_winning_tickets(&lottery_name).is_empty() { - self.prepare_awarding(&lottery_name); + if self.total_winning_tickets(lottery_name).is_empty() { + self.prepare_awarding(lottery_name); } - self.distribute_prizes(&lottery_name) + self.distribute_prizes(lottery_name) } #[view] @@ -319,7 +319,7 @@ pub trait Lottery { self.lottery_info(lottery_name).set(info); self.index_last_winner(lottery_name).set(index_last_winner); if index_last_winner > total_winning_tickets { - self.clear_storage(&lottery_name); + self.clear_storage(lottery_name); return AwardingStatus::Finished; } AwardingStatus::Ongoing