Skip to content

Commit

Permalink
Replace deprecated collections::Bound with ops::Bound (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
bstrie authored Mar 18, 2021
1 parent 2bbb4f2 commit 02ffe28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/schedule.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

use chrono::offset::TimeZone;
use chrono::{DateTime, Datelike, Timelike, Utc};
use std::collections::Bound::{Included, Unbounded};
use std::ops::Bound::{Included, Unbounded};
use std::fmt::{Display, Formatter, Result as FmtResult};

use crate::time_unit::*;
Expand Down Expand Up @@ -581,4 +581,4 @@ mod test {
assert!(schedule_1.timeunitspec_eq(&schedule_2));
assert!(schedule_3.timeunitspec_eq(&schedule_4));
}
}
}
4 changes: 2 additions & 2 deletions src/time_unit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl<'a> DoubleEndedIterator for OrdinalRangeIter<'a> {
/// # Example
/// ```
/// use cron::{Schedule,TimeUnitSpec};
/// use std::collections::Bound::{Included,Excluded};
/// use std::ops::Bound::{Included,Excluded};
/// use std::str::FromStr;
///
/// let expression = "* * * * * * 2015-2044";
Expand Down Expand Up @@ -129,7 +129,7 @@ pub trait TimeUnitSpec {
/// # Example
/// ```
/// use cron::{Schedule,TimeUnitSpec};
/// use std::collections::Bound::{Included,Excluded};
/// use std::ops::Bound::{Included,Excluded};
/// use std::str::FromStr;
///
/// let expression = "* * * 1,15 * * *";
Expand Down
2 changes: 1 addition & 1 deletion tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod tests {
use chrono::*;
use chrono_tz::Tz;
use cron::{Schedule, TimeUnitSpec};
use std::collections::Bound::{Excluded, Included};
use std::ops::Bound::{Excluded, Included};
use std::str::FromStr;

#[test]
Expand Down

0 comments on commit 02ffe28

Please sign in to comment.