Skip to content

Commit

Permalink
pass a ref to match
Browse files Browse the repository at this point in the history
  • Loading branch information
akbulutdora authored and TylerBloom committed Jul 16, 2023
1 parent b211107 commit fd34d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model/tourn_settings_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn populate_pairing_embed<'a>(tree: &PairingSettingsTree, embed: &'a mut CreateE
Pairing Algorithm: {}\n\n",
tree.common.match_size, tree.common.repair_tolerance, tree.common.algorithm,
);
let style_data = match tree.style {
let style_data = match &tree.style {
PairingStyleSettingsTree::Swiss(tree) => {
format!(
"**Swiss Settings**:\n
Expand All @@ -60,7 +60,7 @@ fn populate_pairing_embed<'a>(tree: &PairingSettingsTree, embed: &'a mut CreateE
}

fn populate_scoring_embed(tree: &ScoringSettingsTree, embed: &mut CreateEmbed) {
let style_data = match tree.style {
let style_data = match &tree.style {
ScoringStyleSettingsTree::Standard(tree) => format!(
"**Standard Scoring**\n\
Match Win: {}\n\
Expand Down

0 comments on commit fd34d96

Please sign in to comment.