summaryrefslogtreecommitdiff
path: root/cli/bench/main.rs
diff options
context:
space:
mode:
authorFelipe Baltor <fbaltor@gmail.com>2024-05-23 08:59:11 -0300
committerGitHub <noreply@github.com>2024-05-23 13:59:11 +0200
commitfa1ba256d20236042455abb31a92d2a1d27ee58f (patch)
treecd81e32852e4762f38fffb29ce462f09eab0f0e9 /cli/bench/main.rs
parentfa273509771c01d603d403002481bc1d01e4dd8b (diff)
refactor: remove custom `utc_now` in favor of `chrono::Utc:now` feature (#23888)
This PR removes the use of the custom `utc_now` function in favor of the `chrono` implementation. It resolves #22864. --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/bench/main.rs')
-rw-r--r--cli/bench/main.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 8f0627558..cfbc44e8c 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -17,8 +17,6 @@ use std::process::Stdio;
use std::time::SystemTime;
use test_util::PathRef;
-include!("../util/time.rs");
-
mod http;
mod lsp;
@@ -442,7 +440,8 @@ async fn main() -> Result<()> {
env::set_current_dir(test_util::root_path())?;
let mut new_data = BenchResult {
- created_at: utc_now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
+ created_at: chrono::Utc::now()
+ .to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
sha1: test_util::run_collect(
&["git", "rev-parse", "HEAD"],
None,