api: Remove incorrect attribute on compile test

This commit is contained in:
Jonathan de Jong 2022-02-13 09:59:42 +01:00 committed by GitHub
parent f72d6601fc
commit 9000567a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
} }
} }