Skip to content

Commit 98172e1

Browse files
committed
fixed failing check
1 parent 5b3bc57 commit 98172e1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

primitives/src/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl ChainId {
2323
Self(id)
2424
}
2525

26-
pub fn as_u32(self) -> u32 {
26+
pub fn to_u32(self) -> u32 {
2727
self.0
2828
}
2929
}

sentry/src/db/analytics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub async fn get_analytics(
2727
query
2828
.chains
2929
.iter()
30-
.map(|id| id.as_u32().to_string())
30+
.map(|id| id.to_u32().to_string())
3131
.collect::<Vec<String>>()
3232
.join(",")
3333
));

sentry/src/routes/routers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ mod analytics_router_test {
852852
os_name: None,
853853
chains: vec![],
854854
};
855-
let query = serde_urlencoded::to_string(query).expect("should parse query");
855+
let query = serde_qs::to_string(&query).expect("should parse query");
856856
let req = Request::builder()
857857
.uri(format!("http://127.0.0.1/v5/analytics?{}", query))
858858
.body(Body::empty())
@@ -1122,7 +1122,7 @@ mod analytics_router_test {
11221122
os_name: None,
11231123
chains: vec![],
11241124
};
1125-
let base_query = serde_urlencoded::to_string(query).expect("should parse query");
1125+
let base_query = serde_qs::to_string(&query).expect("should parse query");
11261126

11271127
insert_mock_analytics_for_auth_routes(&app.pool, base_datehour).await;
11281128

0 commit comments

Comments
 (0)