ThePerfectComputer / FastWaveBackend

A Rust VCD parser intended to be the backend of a Waveform Viewer(built using egui) that supports dynamically loaded rust plugins.
GNU General Public License v3.0
42 stars 5 forks source link

Replace deprecated method #11

Closed oscargus closed 1 year ago

oscargus commented 1 year ago

While running surfer, the following deprecation warning, originating from FastWaveBackend, is emitted:

warning: use of deprecated method `chrono::TimeZone::datetime_from_str`: use `DateTime::parse_from_str` instead
   --> FastWaveBackend/src/vcd/parse/metadata.rs:136:25
    |
136 |     let full_date = Utc.datetime_from_str(full_date.as_str(), "%a %b %e %T %Y");
    |                         ^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

warning: `fastwave_backend` (lib) generated 1 warning
   Compiling surfer v0.1.0 (/local/data1/surfer)
    Finished dev [unoptimized + debuginfo] target(s) in 14.91s
     Running `target/debug/surfer`