sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
3.01k stars 187 forks source link

Use std::time instead of crate time where possible #1102

Closed Keksoj closed 5 months ago

Keksoj commented 5 months ago

This warning came up a lot during compilation:

warning: use of deprecated struct `time::Instant`: import `time::ext::InstantExt` instead

While doing research, I found that std::time::{Instant, Duration} fits most of the purposes met with time::{Instant, Duration} until then.

On top of it, this PR applies clippy suggestions.