Skip to content

Commit

Permalink
Fix for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik committed Dec 30, 2023
1 parent 4e38bf5 commit 051cc83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ impl Component for Home {
.expect("Invalid created_at")
.with_timezone(&Local)
.format("%H:%m:%d");
let reactions = self.calc_reactions_count(&ev);
let reposts = self.calc_reposts_count(&ev);
let zaps = self.calc_zap_amount(&ev);
let reactions = self.calc_reactions_count(ev);
let reposts = self.calc_reposts_count(ev);
let zaps = self.calc_zap_amount(ev);
let content_width = area.width.saturating_sub(2); // NOTE: paddingを引いて調整している
let content_height = area.height.saturating_sub(7); // NOTE: paddingと他の行を引いて調整している
let content =
Expand Down

0 comments on commit 051cc83

Please sign in to comment.