Skip to content

Commit

Permalink
Adding fix for build error with prev commit
Browse files Browse the repository at this point in the history
  • Loading branch information
abhamra committed Oct 5, 2023
1 parent 292f8ff commit 8331ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustworkx-core/src/centrality.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ where
{
let alpha: f64 = alpha.unwrap_or(0.1);

let mut beta: HashMap<usize, f64> = beta_map.unwrap_or_else(HashMap::new);
let mut beta: HashMap<usize, f64> = beta_map.unwrap_or_default(HashMap::new);

if beta.is_empty() {
// beta_map was none
Expand Down

0 comments on commit 8331ee2

Please sign in to comment.