client-api: Move conditionally-used import so it's always used
This commit is contained in:
parent
7df5a0f09d
commit
4eb5783474
@ -52,8 +52,6 @@ impl Response {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use matches::assert_matches;
|
use matches::assert_matches;
|
||||||
|
|
||||||
use crate::r0::filter::IncomingFilterDefinition;
|
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
#[cfg(feature = "client")]
|
||||||
#[test]
|
#[test]
|
||||||
fn deserialize_response() {
|
fn deserialize_response() {
|
||||||
@ -72,6 +70,8 @@ mod tests {
|
|||||||
fn serialize_response() {
|
fn serialize_response() {
|
||||||
use ruma_api::OutgoingResponse;
|
use ruma_api::OutgoingResponse;
|
||||||
|
|
||||||
|
use crate::r0::filter::IncomingFilterDefinition;
|
||||||
|
|
||||||
assert_matches!(
|
assert_matches!(
|
||||||
super::Response::new(IncomingFilterDefinition::default())
|
super::Response::new(IncomingFilterDefinition::default())
|
||||||
.try_into_http_response::<Vec<u8>>(),
|
.try_into_http_response::<Vec<u8>>(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user