mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-30 18:44:35 +01:00
3db7891303
* add scope proc macro * Update scope macro code to work with current HttpServiceFactory * started some test code * add some unit tests * code formatting cleanup * add another test for combining and calling 2 scopes * format code with formatter * Update actix-web-codegen/src/lib.rs with comment documentation fix Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com> * work in progress. revised procedural macro to change othe macro call * add tests again. refactor nested code. * clean up code. fix bugs with route and method attributes with parameters * clean up for rust fmt * clean up for rust fmt * fix out of date comment for scope macro * sync to master branch by adding test_wrap * needed to format code * test: split out scope tests * test: add negative tests * chore: move imports back inside (?) * docs: tweak scope docs * fix: prevent trailing slashes in scope prefixes * chore: address clippy lints --------- Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
18 lines
521 B
Plaintext
18 lines
521 B
Plaintext
error: argument to scope macro is not a string literal, expected: #[scope("/prefix")]
|
|
--> tests/trybuild/scope-invalid-args.rs:5:9
|
|
|
|
|
5 | #[scope(PATH)]
|
|
| ^^^^
|
|
|
|
error: argument to scope macro is not a string literal, expected: #[scope("/prefix")]
|
|
--> tests/trybuild/scope-invalid-args.rs:8:9
|
|
|
|
|
8 | #[scope(true)]
|
|
| ^^^^
|
|
|
|
error: argument to scope macro is not a string literal, expected: #[scope("/prefix")]
|
|
--> tests/trybuild/scope-invalid-args.rs:11:9
|
|
|
|
|
11 | #[scope(123)]
|
|
| ^^^
|