From 8331ee214effc3946a43851e187b2ad8d25eb83e Mon Sep 17 00:00:00 2001 From: abhamra Date: Thu, 5 Oct 2023 16:32:21 -0400 Subject: [PATCH] Adding fix for build error with prev commit --- rustworkx-core/src/centrality.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustworkx-core/src/centrality.rs b/rustworkx-core/src/centrality.rs index c099c63048..59d0ca1dcb 100644 --- a/rustworkx-core/src/centrality.rs +++ b/rustworkx-core/src/centrality.rs @@ -738,7 +738,7 @@ where { let alpha: f64 = alpha.unwrap_or(0.1); - let mut beta: HashMap = beta_map.unwrap_or_else(HashMap::new); + let mut beta: HashMap = beta_map.unwrap_or_default(HashMap::new); if beta.is_empty() { // beta_map was none