From 62a6f0ffd08017794b003b0e5960a1aa2876651a Mon Sep 17 00:00:00 2001 From: Brian Martin Date: Mon, 16 Dec 2024 09:19:46 -0800 Subject: [PATCH] rustfmt --- src/common/bpf/builder.rs | 6 +++++- src/common/counters/group.rs | 2 +- src/exposition/http/mod.rs | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/bpf/builder.rs b/src/common/bpf/builder.rs index 1eabd1b5..ac58b353 100644 --- a/src/common/bpf/builder.rs +++ b/src/common/bpf/builder.rs @@ -56,7 +56,11 @@ pub struct Builder> { counters: Vec<(&'static str, Vec<&'static LazyCounter>)>, histograms: Vec<(&'static str, &'static RwLockHistogram)>, maps: Vec<(&'static str, Vec)>, - cpu_counters: Vec<(&'static str, Vec<&'static LazyCounter>, Vec<&'static CounterGroup>)>, + cpu_counters: Vec<( + &'static str, + Vec<&'static LazyCounter>, + Vec<&'static CounterGroup>, + )>, perf_events: Vec<(&'static str, PerfEvent)>, } diff --git a/src/common/counters/group.rs b/src/common/counters/group.rs index 87d4caa3..4390de77 100644 --- a/src/common/counters/group.rs +++ b/src/common/counters/group.rs @@ -1,8 +1,8 @@ use metriken::Metric; +use metriken::Value; use parking_lot::RwLock; use std::sync::OnceLock; use thiserror::Error; -use metriken::Value; #[derive(Error, Debug, PartialEq)] pub enum CounterGroupError { diff --git a/src/exposition/http/mod.rs b/src/exposition/http/mod.rs index 481d4077..e21a3ff3 100644 --- a/src/exposition/http/mod.rs +++ b/src/exposition/http/mod.rs @@ -1,4 +1,4 @@ -use crate::common::{HISTOGRAM_GROUPING_POWER, CounterGroup}; +use crate::common::{CounterGroup, HISTOGRAM_GROUPING_POWER}; use crate::{Arc, Config, Sampler}; use axum::extract::State; use axum::routing::get;