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 {
|
||||
use matches::assert_matches;
|
||||
|
||||
use crate::r0::filter::IncomingFilterDefinition;
|
||||
|
||||
#[cfg(feature = "client")]
|
||||
#[test]
|
||||
fn deserialize_response() {
|
||||
@ -72,6 +70,8 @@ mod tests {
|
||||
fn serialize_response() {
|
||||
use ruma_api::OutgoingResponse;
|
||||
|
||||
use crate::r0::filter::IncomingFilterDefinition;
|
||||
|
||||
assert_matches!(
|
||||
super::Response::new(IncomingFilterDefinition::default())
|
||||
.try_into_http_response::<Vec<u8>>(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user