diff options
author | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-11-03 23:22:51 +0100 |
---|---|---|
committer | Fredrik Meringdal <fmeringdal@hotmail.com> | 2020-11-03 23:22:51 +0100 |
commit | 00ba4141d5bb41f0ffc014c76bfdafcec7c02b6b (patch) | |
tree | 682f9f09ff13849a455d01ea7949a5c4a581663d /src/iter/masks.rs | |
parent | 66317f2566897556488af09e9ca73a06b9439b0f (diff) | |
download | rust_rrule-00ba4141d5bb41f0ffc014c76bfdafcec7c02b6b.zip |
using lazy_static instead of once_cell
Diffstat (limited to 'src/iter/masks.rs')
-rw-r--r-- | src/iter/masks.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/iter/masks.rs b/src/iter/masks.rs index 8b2f6b0..726d270 100644 --- a/src/iter/masks.rs +++ b/src/iter/masks.rs @@ -1,12 +1,13 @@ -use once_cell::sync::Lazy; - // ============================================================================= // Date masks // ============================================================================= // Every mask is 7 days longer to handle cross-year weekly periods. -pub static MASKS: Lazy<Masks> = Lazy::new(Masks::default); + +lazy_static! { + pub static ref MASKS: Masks = Masks::default(); +} #[derive(Clone)] pub struct Masks { |