File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ struct RepositoryMetadata {
83
83
pub ( crate ) struct Release {
84
84
pub id : ReleaseId ,
85
85
pub version : semver:: Version ,
86
+ #[ allow( clippy:: doc_overindented_list_items) ]
86
87
/// Aggregated build status of the release.
87
88
/// * no builds -> build In progress
88
89
/// * any build is successful -> Success
Original file line number Diff line number Diff line change @@ -194,15 +194,15 @@ mod tests {
194
194
let metrics_serialized = metrics. gather ( & env. async_pool ( ) . await ?) ?;
195
195
let all_routes_visited = metrics_serialized
196
196
. iter ( )
197
- . find ( |x| x. get_name ( ) == "docsrs_routes_visited" )
197
+ . find ( |x| x. name ( ) == "docsrs_routes_visited" )
198
198
. unwrap ( ) ;
199
199
let routes_visited_pretty: Vec < _ > = all_routes_visited
200
200
. get_metric ( )
201
201
. iter ( )
202
202
. map ( |metric| {
203
203
let labels = metric. get_label ( ) ;
204
204
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 ( ) ;
206
206
let count = metric. get_counter ( ) . get_value ( ) ;
207
207
format ! ( "{route}: {count}" )
208
208
} )
You can’t perform that action at this time.
0 commit comments