diff --git a/Cargo.lock b/Cargo.lock index 8d2eab0..4e728cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1344,9 +1344,9 @@ dependencies = [ [[package]] name = "number_prefix" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17b02fc0ff9a9e4b35b3342880f48e896ebf69f2967921fe8646bf5b7125956a" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" [[package]] name = "openssl" diff --git a/Cargo.toml b/Cargo.toml index 9fea5e6..d5db2f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ git2 = "0.13.5" lazy_static = "1.4.0" log = "0.4.8" log4rs = "0.11.0" -number_prefix = "0.3.0" +number_prefix = "0.4.0" openssl-probe = "0.1.2" reqwest = "0.10.4" serde = "1.0.106" diff --git a/src/main.rs b/src/main.rs index bd69145..d262e89 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,7 @@ use actix_web::{ use badge::{Badge, BadgeOptions}; use futures::future::Future; use git2::Repository; -use number_prefix::{NumberPrefix, Prefixed, Standalone}; +use number_prefix::NumberPrefix; use std::{ borrow::Cow, fs::create_dir_all, @@ -193,8 +193,8 @@ where pull(&path)?; let (hoc, head, commits) = hoc(&service_path, &state.repos, &state.cache)?; let hoc_pretty = match NumberPrefix::decimal(hoc as f64) { - Standalone(hoc) => hoc.to_string(), - Prefixed(prefix, hoc) => format!("{:.1}{}", hoc, prefix), + NumberPrefix::Standalone(hoc) => hoc.to_string(), + NumberPrefix::Prefixed(prefix, hoc) => format!("{:.1}{}", hoc, prefix), }; let res = HocResult::Hoc { hoc,