From 09be34d13ac805a8ed310beb0c4c6c802c929ec4 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Wed, 15 Feb 2023 20:29:33 +0100 Subject: [PATCH] Removed dependency `duration-string`, now printing `duration` in milliseconds --- Cargo.toml | 1 - src/main.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 88322b7..425040c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,4 +7,3 @@ edition = "2021" reCTBN = { path = "deps/reCTBN/reCTBN", package = "reCTBN", version="0.1.0" } json = "0.12.*" csv = "1.2.*" -duration-string = "0.2.*" diff --git a/src/main.rs b/src/main.rs index 9af122e..d59d2d4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,6 @@ #![allow(non_snake_case)] use csv; -use duration_string::DurationString; use json; use std::collections::BTreeSet; use std::fs; @@ -163,7 +162,7 @@ fn main() { .unwrap() .to_string(), parsed_json[idx]["density"].as_f64().unwrap().to_string(), - DurationString::from(duration).to_string(), + duration.as_millis().to_string(), ], ) .unwrap();