Fix warnings #10

Closed
opened 2022-11-12 18:01:26 +01:00 by Anri · 1 comment
Owner

Not really a bug, fix theses warnings:

warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead
  --> src/ics.rs:17:33
   |
17 |             dt_ical(chrono::Utc.ymd(1970, 1, 1).and_hms(0, 0, 0)) + "Z",
   |                                 ^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead
  --> src/ics.rs:17:49
   |
17 |             dt_ical(chrono::Utc.ymd(1970, 1, 1).and_hms(0, 0, 0)) + "Z",
   |                                                 ^^^^^^^

warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead
   --> src/timetable.rs:283:29
    |
283 |                         Utc.ymd(date.year(), date.month(), date.day())
    |                             ^^^

warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead
   --> src/timetable.rs:284:30
    |
284 | ...                   .and_hms(start.0, start.1, 0),
    |                        ^^^^^^^

warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead
   --> src/timetable.rs:287:29
    |
287 |                         Utc.ymd(date.year(), date.month(), date.day())
    |                             ^^^

warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead
   --> src/timetable.rs:288:30
    |
288 | ...                   .and_hms(end.0, end.1, 0),
    |                        ^^^^^^^
Not really a bug, fix theses warnings: ``` warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead --> src/ics.rs:17:33 | 17 | dt_ical(chrono::Utc.ymd(1970, 1, 1).and_hms(0, 0, 0)) + "Z", | ^^^ | = note: `#[warn(deprecated)]` on by default warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead --> src/ics.rs:17:49 | 17 | dt_ical(chrono::Utc.ymd(1970, 1, 1).and_hms(0, 0, 0)) + "Z", | ^^^^^^^ warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead --> src/timetable.rs:283:29 | 283 | Utc.ymd(date.year(), date.month(), date.day()) | ^^^ warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead --> src/timetable.rs:284:30 | 284 | ... .and_hms(start.0, start.1, 0), | ^^^^^^^ warning: use of deprecated associated function `chrono::TimeZone::ymd`: use `with_ymd_and_hms()` instead --> src/timetable.rs:287:29 | 287 | Utc.ymd(date.year(), date.month(), date.day()) | ^^^ warning: use of deprecated associated function `chrono::Date::<Tz>::and_hms`: Use and_hms_opt() instead --> src/timetable.rs:288:30 | 288 | ... .and_hms(end.0, end.1, 0), | ^^^^^^^ ```
Anri added the
bug
label 2022-11-12 18:01:26 +01:00
Author
Owner

Fixed in c232258427

Fixed in c232258427ed651744f25c10b30b7fc90f81fba9
Anri closed this issue 2023-01-10 12:19:13 +01:00
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Anri/cal8tor#10
No description provided.