events: Import items from original location, not private s in a parent mod

This commit is contained in:
Jonas Platte 2021-06-17 18:52:24 +02:00
parent dfce734974
commit 2c8af1e17f
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
4 changed files with 10 additions and 4 deletions

View File

@ -175,11 +175,13 @@ mod tests {
};
#[cfg(feature = "unstable-pre-spec")]
use super::{AcceptEventContent, Relation};
use super::AcceptEventContent;
use super::{
AcceptMethod, AcceptToDeviceEventContent, CustomContent, HashAlgorithm,
KeyAgreementProtocol, MessageAuthenticationCode, SasV1Content, ShortAuthenticationString,
};
#[cfg(feature = "unstable-pre-spec")]
use crate::key::verification::Relation;
use crate::ToDeviceEvent;
#[test]

View File

@ -52,7 +52,8 @@ mod tests {
use ruma_serde::Raw;
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
use super::{DoneEventContent, Relation};
use super::DoneEventContent;
use crate::key::verification::Relation;
#[test]
fn serialization() {

View File

@ -76,7 +76,8 @@ mod tests {
use ruma_serde::Raw;
use serde_json::{from_value as from_json_value, json, to_value as to_json_value};
use super::{ReadyEventContent, ReadyToDeviceEventContent, Relation, VerificationMethod};
use super::{ReadyEventContent, ReadyToDeviceEventContent};
use crate::key::verification::{Relation, VerificationMethod};
#[test]
fn serialization() {

View File

@ -262,7 +262,9 @@ mod tests {
StartToDeviceEventContent,
};
#[cfg(feature = "unstable-pre-spec")]
use super::{ReciprocateV1Content, Relation, StartEventContent};
use super::{ReciprocateV1Content, StartEventContent};
#[cfg(feature = "unstable-pre-spec")]
use crate::key::verification::Relation;
use crate::ToDeviceEvent;
#[test]