Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrvillage committed Jun 19, 2024
1 parent ffdcc59 commit fc35ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ pub fn calculate_r2s<'a>(
r.outcome = colnames
.as_ref()
.and_then(|c| c.get(j).map(|c| c.to_string()))
.unwrap_or(j.to_string());
.or_else(|| Some(j.to_string()));
r
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit fc35ee3

Please sign in to comment.