Fix test compilation
This commit is contained in:
parent
d4578a835d
commit
74dad12056
@ -171,7 +171,7 @@ mod tests {
|
|||||||
|
|
||||||
let http_request = HttpRequest::builder()
|
let http_request = HttpRequest::builder()
|
||||||
.method(metadata.method)
|
.method(metadata.method)
|
||||||
.uri(path.as_ref())
|
.uri(path)
|
||||||
.body(serde_json::to_vec(&request_body).map_err(Error::from)?)?;
|
.body(serde_json::to_vec(&request_body).map_err(Error::from)?)?;
|
||||||
|
|
||||||
Ok(http_request)
|
Ok(http_request)
|
||||||
@ -179,6 +179,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The response to a request to create a new room alias.
|
/// The response to a request to create a new room alias.
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Response;
|
pub struct Response;
|
||||||
|
|
||||||
impl FutureFrom<HttpResponse<Vec<u8>>> for Response {
|
impl FutureFrom<HttpResponse<Vec<u8>>> for Response {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user