Removed dependency `duration-string`, now printing `duration` in milliseconds

master
Meliurwen 2 years ago
parent 41a87e1e9c
commit 09be34d13a
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 1
      Cargo.toml
  2. 3
      src/main.rs

@ -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.*"

@ -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();

Loading…
Cancel
Save