Skip to content

Commit 1f5a82a

Browse files
committed
clippy & fmt
1 parent 1d27934 commit 1f5a82a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

runtimes/core/src/api/server.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl Server {
9494
// There's no need to defer it for dynamic runtime registration.
9595
let static_handler = StaticAssetsHandler::new(assets);
9696
let requests_total =
97-
requests_total_counter(&ep.name.service(), &ep.name.endpoint());
97+
requests_total_counter(ep.name.service(), ep.name.endpoint());
9898

9999
let handler = EndpointHandler {
100100
endpoint: ep.clone(),
@@ -158,7 +158,7 @@ impl Server {
158158
Some(h) => {
159159
let endpoint = self.endpoints.get(&endpoint_name).unwrap().to_owned();
160160
let requests_total =
161-
requests_total_counter(&endpoint.name.service(), &endpoint.name.endpoint());
161+
requests_total_counter(endpoint.name.service(), endpoint.name.endpoint());
162162

163163
let handler = EndpointHandler {
164164
endpoint,

runtimes/core/src/metrics/counter.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ impl Counter {
1717
}
1818

1919
/// Add multiple labels to the counter's base labels
20-
pub fn with_labels<K, V>(
21-
mut self,
22-
new_labels: impl IntoIterator<Item = (K, V)>,
23-
) -> Self
20+
pub fn with_labels<K, V>(mut self, new_labels: impl IntoIterator<Item = (K, V)>) -> Self
2421
where
2522
K: Into<String>,
2623
V: Into<String>,

0 commit comments

Comments
 (0)