Make Range implementation safe

This commit is contained in:
Jacob Pratt 2021-04-01 05:06:28 -04:00
parent 641c8cd875
commit a875876027
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
3 changed files with 24 additions and 31 deletions

View file

@ -157,7 +157,7 @@ impl<'a, 'b> std::ops::Add<&'b NaiveDate> for &'a NaiveDate {
}
}
unsafe impl std::iter::Step for NaiveDate {
impl std::iter::Step for NaiveDate {
fn steps_between(_: &Self, _: &Self) -> Option<usize> {
unimplemented!()
}