Skip to content

Commit 19f86fd

Browse files
committed
Rust: Address confusing / typo'd paths.
1 parent 49ff967 commit 19f86fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rust/ql/test/library-tests/dataflow/sources/web_frameworks.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ mod poem_test {
7171
.at("/2/:a/:b", get(my_poem_handler_2))
7272
.at("/3/:a/:b", get(my_poem_handler_3))
7373
.at("/4/:a/:b", get(my_poem_handler_4))
74-
.at("/4/:a/:b", get(my_poem_handler_5))
75-
.at("/5/:a/", get(my_poem_handler_6));
74+
.at("/5/:a/:b", get(my_poem_handler_5))
75+
.at("/6/:a/", get(my_poem_handler_6));
7676

7777
_ = Server::new(TcpListener::bind("0.0.0.0:3000")).run(app).await.unwrap();
7878

@@ -187,12 +187,12 @@ mod axum_test {
187187

188188
async fn test_axum() {
189189
let app = Router::<()>::new()
190-
.route("/foo/{a}", get(my_axum_handler_1))
191-
.route("/bar/{a}/{b}", get(my_axum_handler_2))
192-
.route("/1/:a", get(my_axum_handler_3))
193-
.route("/2/:a", get(my_axum_handler_4))
194-
.route("/3/:a", get(my_axum_handler_5))
195-
.route("/4/:a", get(my_axum_handler_6).get(my_axum_handler_7));
190+
.route("/1/{a}", get(my_axum_handler_1))
191+
.route("/2/{a}/{b}", get(my_axum_handler_2))
192+
.route("/3/:a", get(my_axum_handler_3))
193+
.route("/4/:a", get(my_axum_handler_4))
194+
.route("/5/:a", get(my_axum_handler_5))
195+
.route("/67/:a", get(my_axum_handler_6).get(my_axum_handler_7));
196196

197197
// ...
198198
}

0 commit comments

Comments
 (0)