sapling/eden/scm/lib/debugtop
David Tolnay 81298dd90f Utc.timestamp(…) -> Utc.timestamp_opt(…).unwrap()
Summary:
Implicitly panicking methods like `TimeZone::timestamp` are deprecated as of chrono 0.4.23.

```
warning: use of deprecated associated function `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead
   --> buck2_common/src/cas_digest.rs:330:13
    |
330 |         Utc.timestamp(self.inner.expires.load(Ordering::Relaxed), 0)
    |             ^^^^^^^^^

warning: use of deprecated associated function `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead
   --> buck2_build_api/src/actions/impls/cas_artifact.rs:234:60
    |
234 |                 let dir = re_tree_to_directory(&tree, &Utc.timestamp(0, 0))
    |                                                            ^^^^^^^^^

warning: use of deprecated associated function `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead
   --> buck2_build_api/src/interpreter/rule_defs/context.rs:925:43
    |
925 |         let expires_after_timestamp = Utc.timestamp(expires_after_timestamp, 0);
    |                                           ^^^^^^^^^
```

Reviewed By: zertosh

Differential Revision: D42177451

fbshipit-source-id: fd0ba0a37b02316e3fcd67737049a53dffb94ed2
2022-12-20 13:50:25 -08:00
..
src Utc.timestamp(…) -> Utc.timestamp_opt(…).unwrap() 2022-12-20 13:50:25 -08:00
Cargo.toml update to rust 1.64.0 2022-09-27 15:18:58 -07:00