Skip to content

Commit bf81108

Browse files
committed
cargo fmt + clippy
1 parent 901880a commit bf81108

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

sentry/src/routes/channel.rs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ mod test {
12711271
{
12721272
let accounting_response =
12731273
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1274-
.await.expect("shoul get accounting");
1274+
.await
1275+
.expect("shoul get accounting");
12751276

12761277
assert_eq!(accounting_response.balances.earners.len(), 0);
12771278
assert_eq!(accounting_response.balances.spenders.len(), 0);
@@ -1296,7 +1297,8 @@ mod test {
12961297

12971298
let accounting_response =
12981299
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1299-
.await.expect("should get accounting");
1300+
.await
1301+
.expect("should get accounting");
13001302

13011303
assert_eq!(balances, accounting_response.balances);
13021304
}
@@ -1329,7 +1331,8 @@ mod test {
13291331

13301332
let accounting_response =
13311333
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1332-
.await.expect("shoul get accounting");
1334+
.await
1335+
.expect("shoul get accounting");
13331336

13341337
assert_eq!(balances, accounting_response.balances)
13351338
}
@@ -1386,10 +1389,13 @@ mod test {
13861389
Extension(channel_context.clone()),
13871390
Path((channel_context.context.id(), *CREATOR)),
13881391
)
1389-
.await.expect("should get spender leaf");
1392+
.await
1393+
.expect("should get spender leaf");
13901394

13911395
let accounting_response =
1392-
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone())).await.expect("should get accounting");
1396+
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1397+
.await
1398+
.expect("should get accounting");
13931399

13941400
// Making sure a new entry has been created
13951401
assert_eq!(
@@ -1413,7 +1419,9 @@ mod test {
14131419
.expect("should spend");
14141420

14151421
let accounting_response =
1416-
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone())).await.expect("should get accounting");
1422+
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1423+
.await
1424+
.expect("should get accounting");
14171425

14181426
assert_eq!(balances, accounting_response.balances);
14191427

@@ -1426,7 +1434,9 @@ mod test {
14261434
assert!(res.is_ok());
14271435

14281436
let accounting_response =
1429-
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone())).await.expect("should get accounting");
1437+
get_accounting_for_channel_axum(app.clone(), Extension(channel_context.clone()))
1438+
.await
1439+
.expect("should get accounting");
14301440

14311441
// Balances shouldn't change
14321442
assert_eq!(

sentry/src/routes/routers.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,9 @@ pub fn channels_router_axum<C: Locked + 'static>() -> Router {
138138
let spender_routes = Router::new()
139139
.route(
140140
"/:addr",
141-
get(get_spender_limits_axum::<C>)
142-
.post(add_spender_leaf_axum::<C>),
143-
)
144-
.route(
145-
"/all",
146-
get(get_all_spender_limits_axum::<C>),
141+
get(get_spender_limits_axum::<C>).post(add_spender_leaf_axum::<C>),
147142
)
143+
.route("/all", get(get_all_spender_limits_axum::<C>))
148144
.layer(middleware::from_fn(authentication_required::<C, _>));
149145

150146
let channel_routes = Router::new()

0 commit comments

Comments
 (0)