state-res: Minor fixes & doc updates

This commit is contained in:
Devin Ragotzy 2021-11-15 23:08:12 +01:00 committed by Jonas Platte
parent 44db63657f
commit 7fbfe59091
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
3 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,7 @@ all-features = true
[features]
compat = []
unstable-pre-spec = ["ruma-events/unstable-pre-spec"]
unstable-pre-spec = ["ruma-events/unstable-pre-spec", "ruma-identifiers/unstable-pre-spec"]
unstable-exhaustive-types = []
[dependencies]

View File

@ -8,7 +8,6 @@ pub enum RoomDisposition {
/// A room version that has a stable specification.
Stable,
/// A room version that is not yet fully specified.
#[allow(dead_code)]
Unstable,
}
@ -62,8 +61,12 @@ pub struct RoomVersion {
/// Extra rules when verifying redaction events.
pub extra_redaction_checks: bool,
/// Allow knocking in event authentication.
///
/// See: https://spec.matrix.org/unstable/rooms/v7/ for more information.
pub allow_knocking: bool,
/// Allow knocking in event authentication.
/// Adds support for the restricted join rule.
///
/// See: https://github.com/matrix-org/matrix-doc/pull/3289 for more information.
pub restricted_join_rules: bool,
}

View File

@ -36,7 +36,6 @@ pub fn do_check(
expected_state_ids: Vec<EventId>,
) {
// To activate logging use `RUST_LOG=debug cargo t`
// The logger is initialized in the `INITIAL_EVENTS` function.
let init_events = INITIAL_EVENTS();