mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-07-18 06:28:11 -07:00
global: fmt
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use brk_traversable::Traversable;
|
||||
use brk_types::{
|
||||
Day1, Day3, Epoch, Halving, Height, Hour1, Hour4, Hour12, Minute10, Minute30,
|
||||
Month1, Month3, Month6, Version, Week1, Year1, Year10,
|
||||
Day1, Day3, Epoch, Halving, Height, Hour1, Hour4, Hour12, Minute10, Minute30, Month1, Month3,
|
||||
Month6, Version, Week1, Year1, Year10,
|
||||
};
|
||||
use schemars::JsonSchema;
|
||||
use serde::Serialize;
|
||||
|
||||
@@ -12,9 +12,8 @@ pub struct DistributionStats<A> {
|
||||
}
|
||||
|
||||
impl<A> DistributionStats<A> {
|
||||
pub const SUFFIXES: [&'static str; 7] = [
|
||||
"min", "max", "pct10", "pct25", "median", "pct75", "pct90",
|
||||
];
|
||||
pub const SUFFIXES: [&'static str; 7] =
|
||||
["min", "max", "pct10", "pct25", "median", "pct75", "pct90"];
|
||||
|
||||
pub fn try_from_fn<E>(
|
||||
mut f: impl FnMut(&str) -> std::result::Result<A, E>,
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
mod constant;
|
||||
mod distribution_stats;
|
||||
mod per_resolution;
|
||||
mod percent;
|
||||
mod window_24h;
|
||||
mod windows;
|
||||
mod windows_from_1w;
|
||||
mod percent;
|
||||
mod windows_to_1m;
|
||||
|
||||
pub use constant::*;
|
||||
pub use distribution_stats::*;
|
||||
pub use percent::*;
|
||||
pub use per_resolution::*;
|
||||
pub use percent::*;
|
||||
pub use window_24h::*;
|
||||
pub use windows::*;
|
||||
pub use windows_from_1w::*;
|
||||
|
||||
Reference in New Issue
Block a user