Skip to content

Commit fa242c7

Browse files
committed
fix clippy errors
1 parent d7e2a9d commit fa242c7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/web/crate_details.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ struct RepositoryMetadata {
8383
pub(crate) struct Release {
8484
pub id: ReleaseId,
8585
pub version: semver::Version,
86+
#[allow(clippy::doc_overindented_list_items)]
8687
/// Aggregated build status of the release.
8788
/// * no builds -> build In progress
8889
/// * any build is successful -> Success

src/web/metrics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,15 +194,15 @@ mod tests {
194194
let metrics_serialized = metrics.gather(&env.async_pool().await?)?;
195195
let all_routes_visited = metrics_serialized
196196
.iter()
197-
.find(|x| x.get_name() == "docsrs_routes_visited")
197+
.find(|x| x.name() == "docsrs_routes_visited")
198198
.unwrap();
199199
let routes_visited_pretty: Vec<_> = all_routes_visited
200200
.get_metric()
201201
.iter()
202202
.map(|metric| {
203203
let labels = metric.get_label();
204204
assert_eq!(labels.len(), 1); // not sure when this would be false
205-
let route = labels[0].get_value();
205+
let route = labels[0].value();
206206
let count = metric.get_counter().get_value();
207207
format!("{route}: {count}")
208208
})

0 commit comments

Comments
 (0)