Skip to content

Commit 6844446

Browse files
sypharGuillaumeGomez
authored andcommitted
fix clippy errors
1 parent b1dacb6 commit 6844446

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/web/crate_details.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ struct RepositoryMetadata {
8282
pub(crate) struct Release {
8383
pub id: ReleaseId,
8484
pub version: semver::Version,
85+
#[allow(clippy::doc_overindented_list_items)]
8586
/// Aggregated build status of the release.
8687
/// * no builds -> build In progress
8788
/// * any build is successful -> Success

src/web/metrics.rs

Lines changed: 2 additions & 2 deletions
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)