rbatis / fast_log

Rust async log High-performance asynchronous logging
Apache License 2.0
251 stars 13 forks source link

add_sub_sec 方法缺失 #19

Closed jiashiwen closed 1 year ago

jiashiwen commented 1 year ago

1.5.51 版本 add_sub_sec 方法缺失,是不是DateTime升级了没跟进呢?

no method named `add_sub_sec` found for struct `DateTime` in the current scope
  --> /Users/jiashiwen/.cargo/registry/src/github.com-1ecc6299db9ec823/fast_log-1.5.51/src/formats.rs:25:59
   |
25 |                         fastdate::DateTime::from(arg.now).add_sub_sec(fastdate::offset_sec() as i64)
   |                                                           ^^^^^^^^^^^ method not found in `DateTime`

error[E0599]: no method named `add_sub_sec` found for struct `DateTime` in the current scope
  --> /Users/jiashiwen/.cargo/registry/src/github.com-1ecc6299db9ec823/fast_log-1.5.51/src/formats.rs:84:59
   |
84 |                         fastdate::DateTime::from(arg.now).add_sub_sec(fastdate::offset_sec() as i64)
   |                                                           ^^^^^^^^^^^ method not found in `DateTime`

For more information about this error, try `rustc --explain E0599`.
zhuxiujia commented 1 year ago

你删除本地目录的Cargo.lock文件,然后执行以下cargo update命令更新即可

jiashiwen commented 1 year ago

thx