state-res: Don't import-rename crate root

This commit is contained in:
Jonas Platte 2021-09-05 19:33:44 +02:00
parent 0ed0a620a3
commit 0cd91ed61e
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -21,7 +21,7 @@ use ruma_identifiers::{EventId, RoomId, RoomVersionId, UserId};
use serde_json::{json, Value as JsonValue};
use tracing::info;
use crate::{self as state_res, auth_types_for_event, Error, Event, Result, StateMap};
use crate::{auth_types_for_event, Error, Event, Result, StateMap};
pub use event::StateEvent;
@ -76,7 +76,7 @@ pub fn do_check(
// Resolve the current state and add it to the state_at_event map then continue
// on in "time"
for node in state_res::lexicographical_topological_sort(&graph, |id| {
for node in crate::lexicographical_topological_sort(&graph, |id| {
Ok((0, MilliSecondsSinceUnixEpoch(uint!(0)), id.clone()))
})
.unwrap()
@ -108,7 +108,7 @@ pub fn do_check(
.collect::<Vec<_>>()
);
let resolved = state_res::resolve(
let resolved = crate::resolve(
&RoomVersionId::Version6,
&state_sets,
state_sets