mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
Replace methods with more flexible endpoints
This commit is contained in:
parent
0ac0f0f504
commit
b807ae2796
87 changed files with 1497 additions and 1512 deletions
11
tests/ui/endpoint/unsafe.stderr
Normal file
11
tests/ui/endpoint/unsafe.stderr
Normal file
|
@ -0,0 +1,11 @@
|
|||
error: Endpoint handler methods must not be unsafe
|
||||
--> $DIR/unsafe.rs:9:1
|
||||
|
|
||||
9 | unsafe fn read_all() {}
|
||||
| ^^^^^^
|
||||
|
||||
error[E0412]: cannot find type `read_all___gotham_restful_endpoint` in this scope
|
||||
--> $DIR/unsafe.rs:5:12
|
||||
|
|
||||
5 | #[resource(read_all)]
|
||||
| ^^^^^^^^ not found in this scope
|
Loading…
Add table
Add a link
Reference in a new issue