Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Don't run clippy for all features
  • Loading branch information
emschwartz committed May 23, 2023
commit 4be57d34de259c33fb199990bc8a7d23872b734f
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
# Lint
- name: Run Clippy
# GitHub hosted runners using the latest stable version of Rust have Clippy pre-installed.
run: cargo clippy --all-targets --all-features
run: cargo clippy --all-targets --features=prometheus-exporter,opentelemetry,metrics,prometheus

# Build the packages
- run: cargo build
Expand Down
2 changes: 1 addition & 1 deletion autometrics/src/prometheus_exporter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use opentelemetry_sdk::export::metrics::aggregation;
use opentelemetry_sdk::metrics::{controllers, processors, selectors};
use prometheus::{default_registry, Error, TextEncoder};

static GLOBAL_EXPORTER: Lazy<GlobalPrometheus> = Lazy::new(|| initialize_metrics_exporter());
static GLOBAL_EXPORTER: Lazy<GlobalPrometheus> = Lazy::new(initialize_metrics_exporter);

#[derive(Clone)]
#[doc(hidden)]
Expand Down