From 9a163bb4371df3187965b9b0d2b3f2147906705d Mon Sep 17 00:00:00 2001 From: Felix Hekhorn Date: Tue, 3 Sep 2024 10:12:43 +0300 Subject: [PATCH] Swap unwrap_or for unwrap_or_default --- pineappl_py/src/grid.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pineappl_py/src/grid.rs b/pineappl_py/src/grid.rs index 42e1c42e..bed3825f 100644 --- a/pineappl_py/src/grid.rs +++ b/pineappl_py/src/grid.rs @@ -280,9 +280,9 @@ impl PyGrid { self.grid .convolve( &mut lumi_cache, - &order_mask.unwrap_or(vec![]), - &bin_indices.unwrap_or(vec![]), - &channel_mask.unwrap_or(vec![]), + &order_mask.unwrap_or_default(), + &bin_indices.unwrap_or_default(), + &channel_mask.unwrap_or_default(), &xi.unwrap_or(vec![(1.0, 1.0)]), ) .into_pyarray_bound(py) @@ -347,9 +347,9 @@ impl PyGrid { self.grid .convolve( &mut lumi_cache, - &order_mask.unwrap_or(vec![]), - &bin_indices.unwrap_or(vec![]), - &channel_mask.unwrap_or(vec![]), + &order_mask.unwrap_or_default(), + &bin_indices.unwrap_or_default(), + &channel_mask.unwrap_or_default(), &xi.unwrap_or(vec![(1.0, 1.0)]), ) .into_pyarray_bound(py)