Skip to content

Commit 8b9222e

Browse files
committed
Improves memory management. Reduces complexity of is_time_matching and find_next_occurrence.
1 parent 9e346e5 commit 8b9222e

File tree

4 files changed

+186
-160
lines changed

4 files changed

+186
-160
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "croner"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
edition = "2021"
55
license = "MIT"
66
description = "A cron parser and job scheduler library for Rust"

examples/iter_demo.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ fn main() {
1010

1111
// Get next 5 matches using iter_from
1212
// There is also iter_after, which does not match starting time
13-
println!("Finding matches of pattern '{}' starting from {}:", cron.pattern.to_string(), time);
13+
println!(
14+
"Finding matches of pattern '{}' starting from {}:",
15+
cron.pattern.to_string(),
16+
time
17+
);
1418

1519
for time in cron.clone().iter_from(time).take(5) {
1620
println!("{}", time);

0 commit comments

Comments
 (0)