Skip to content

Commit

Permalink
Add docstring to fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
potkae committed Dec 9, 2023
1 parent f802329 commit f87b0f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions examples/configuring_default_metrics.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::collections::HashMap;

use actix_web::{web, App, HttpResponse, HttpServer};
use actix_web_prom::{ActixMetricsConfiguration, PrometheusMetricsBuilder};

Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ pub struct LabelsConfiguration {
}

impl LabelsConfiguration {
/// construct default LabelsConfiguration
pub fn default() -> LabelsConfiguration {
LabelsConfiguration {
endpoint: String::from("endpoint"),
Expand Down

0 comments on commit f87b0f9

Please sign in to comment.