summaryrefslogtreecommitdiff
path: root/src/iter/masks.rs
diff options
context:
space:
mode:
authorFredrik Meringdal <fmeringdal@hotmail.com>2020-11-03 23:22:51 +0100
committerFredrik Meringdal <fmeringdal@hotmail.com>2020-11-03 23:22:51 +0100
commit00ba4141d5bb41f0ffc014c76bfdafcec7c02b6b (patch)
tree682f9f09ff13849a455d01ea7949a5c4a581663d /src/iter/masks.rs
parent66317f2566897556488af09e9ca73a06b9439b0f (diff)
downloadrust_rrule-00ba4141d5bb41f0ffc014c76bfdafcec7c02b6b.zip
using lazy_static instead of once_cell
Diffstat (limited to 'src/iter/masks.rs')
-rw-r--r--src/iter/masks.rs7
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 {