Remove things that can't be properly deprecated

See https://github.com/rust-lang/rust/issues/47236
This commit is contained in:
Jonas Platte 2020-07-26 16:24:36 +02:00
parent 5ca2fd78a8
commit d7463ce37d
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
6 changed files with 6 additions and 26 deletions

View File

@ -32,6 +32,9 @@ Breaking changes:
```
* Rename `r0::search::search_events::{RoomEventJsons => ResultRoomEvents}`. The previous name was an
error introduced in a mass search and replace
* `r0::sync::sync_events::SetPresence` has been moved and renamed. Use `presence::PresenceState`
from `ruma` or `ruma-common`.
* `r0::push::Action` has been moved. Import it from `ruma` or `ruma-common`.
Improvements:
@ -43,12 +46,6 @@ Improvements:
* `r0::message::get_message_events`
* Add `logout_devices` field to `r0::account::change_password`
Deprecations:
* `r0::sync::sync_events::SetPresence` has been moved and renamed. Use `presence::PresenceState`
from `ruma` or `ruma-common`.
* `r0::push::Action` has been moved. Import it from `ruma` or `ruma-common`.
# 0.9.0
Bug fixes:

View File

@ -19,9 +19,6 @@ pub mod set_pushrule;
pub mod set_pushrule_actions;
pub mod set_pushrule_enabled;
#[deprecated = "use `push::Action` from `ruma` or `ruma-common` instead"]
pub use ruma_common::push::Action;
/// The kinds of push rules that are available
#[derive(
Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize, Display, EnumString,

View File

@ -93,9 +93,6 @@ ruma_api! {
error: crate::Error
}
#[deprecated = "use `presence::PresenceState` from `ruma` or `ruma-common` instead"]
pub use ruma_common::presence::PresenceState as SetPresence;
/// A filter represented either as its full JSON definition or the ID of a saved filter.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[allow(clippy::large_enum_variant)]

View File

@ -12,17 +12,15 @@ Breaking changes:
* This change removes the types `EventMatchCondition`, `RoomMemberCountCondition` and
`SenderNotificationPermissionCondition`
* Add PDU types: `pdu::{Pdu, PduStub}`
* `presence::PresenceState` has been moved. Import it from `ruma` or `ruma-common`.
* `EventJson` has been moved and renamed. Import it from `ruma` or `ruma-common`.
Improvements:
* Add `room::MessageFormat` and `room::FormattedBody`
* Skip serialization of optional values on `room::encryption::EncryptionEventContent`
Deprecations:
* `presence::PresenceState` has been moved. Import it from `ruma` or `ruma-common`.
* `EventJson` has been moved and renamed. Import it from `ruma` or `ruma-common`.
# 0.21.3
Bug fixes:

View File

@ -130,9 +130,6 @@ use serde_json::value::RawValue as RawJsonValue;
use self::room::redaction::{RedactionEvent, SyncRedactionEvent};
#[deprecated = "Use ruma_serde::empty::Empty directly instead."]
pub use ruma_serde::empty::Empty;
mod algorithm;
mod enums;
mod error;
@ -185,9 +182,6 @@ pub use self::{
event_type::EventType,
};
#[deprecated = "Use ruma_common::Raw instead."]
pub use ruma_common::Raw as EventJson;
/// Extra information about an event that is not incorporated into the event's
/// hash.
#[derive(Clone, Debug, Default, Deserialize, Serialize)]

View File

@ -7,9 +7,6 @@ use ruma_events_macros::{Event, EventContent};
use ruma_identifiers::UserId;
use serde::{Deserialize, Serialize};
#[deprecated = "use `presence::PresenceState` from `ruma` or `ruma-common` instead"]
pub use ruma_common::presence::PresenceState;
/// Presence event.
#[derive(Clone, Debug, Event)]
pub struct PresenceEvent {