api: Remove incorrect attribute on compile test
This commit is contained in:
		
							parent
							
								
									f72d6601fc
								
							
						
					
					
						commit
						9000567a70
					
				| @ -10,7 +10,7 @@ ruma_api! { | |||||||
|         description: "Does something.", |         description: "Does something.", | ||||||
|         method: POST, // An `http::Method` constant. No imports required.
 |         method: POST, // An `http::Method` constant. No imports required.
 | ||||||
|         name: "some_endpoint", |         name: "some_endpoint", | ||||||
|         path: "/_matrix/some/endpoint/:foo", |         path: "/_matrix/some/endpoint", | ||||||
|         rate_limited: false, |         rate_limited: false, | ||||||
|         authentication: None, |         authentication: None, | ||||||
|     } |     } | ||||||
| @ -18,7 +18,6 @@ ruma_api! { | |||||||
|     #[derive(PartialEq)] // Make sure attributes work
 |     #[derive(PartialEq)] // Make sure attributes work
 | ||||||
|     request: { |     request: { | ||||||
|         // With no attribute on the field, it will be put into the body of the request.
 |         // With no attribute on the field, it will be put into the body of the request.
 | ||||||
|         #[ruma_api(path)] |  | ||||||
|         pub foo: String, |         pub foo: String, | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user