diff --git a/crates/ruma-api-macros/src/response.rs b/crates/ruma-api-macros/src/response.rs index be920b80..1b7ff9c4 100644 --- a/crates/ruma-api-macros/src/response.rs +++ b/crates/ruma-api-macros/src/response.rs @@ -198,7 +198,7 @@ impl ResponseField { } } - /// Return the contained field and HTTP header ident if this repsonse field is a header kind. + /// Return the contained field and HTTP header ident if this response field is a header kind. fn as_header_field(&self) -> Option<(&Field, &Ident)> { match self { ResponseField::Header(field, ident) => Some((field, ident)), diff --git a/crates/ruma-api/CHANGELOG.md b/crates/ruma-api/CHANGELOG.md index f049d773..40ef085a 100644 --- a/crates/ruma-api/CHANGELOG.md +++ b/crates/ruma-api/CHANGELOG.md @@ -84,7 +84,7 @@ Breaking changes: Improvements: -* The `EndpointError`s that come with ruma crates now implement `std::errror::Error` +* The `EndpointError`s that come with ruma crates now implement `std::error::Error` * Add a new `MatrixError` type to the `error` module that consists of a HTTP status code and JSON `body` and is the new default error type for `ruma_api!` diff --git a/crates/ruma-client-api/CHANGELOG.md b/crates/ruma-client-api/CHANGELOG.md index b00cbb56..5ce8d9d0 100644 --- a/crates/ruma-client-api/CHANGELOG.md +++ b/crates/ruma-client-api/CHANGELOG.md @@ -200,7 +200,7 @@ Improvements: * Add method `into_event_content` for `r0::room::create_room::CreationContent` * Add room visibility endpoints: `r0::directory::{get_room_visibility, set_room_visibility}`. * Add is_empty helpers for structs in `r0::sync::sync_events` -* Add a constructor for request structs of the followign endpoints +* Add a constructor for request structs of the following endpoints * `r0::room::create_room` * `r0::message::get_message_events` * Add `logout_devices` field to `r0::account::change_password` @@ -276,7 +276,7 @@ Improvements: * Add missing serde attributes to `get_content_thumbnail` query parameters * Add missing `state` response field to `r0::message::get_message_events` * Normalize `serde_json` imports -* Remove dependeny on the `url` crate +* Remove dependency on the `url` crate # 0.7.2 @@ -368,7 +368,7 @@ Improvements: * `r0::account::request_3pid_management_token_via_msisdn` * `r0::account::request_password_change_token_via_msisdn` * `r0::account::request_registration_token_via_msisdn` - * `r0::acount::request_3pid_management_token_via_email` + * `r0::account::request_3pid_management_token_via_email` * Update `r0::presence_get_presence` from r0.4.0 to r0.6.0 * Add `r0::account::bind_3pid` * Add `r0::account::delete_3pid` diff --git a/crates/ruma-client-api/src/r0/membership/invite_user.rs b/crates/ruma-client-api/src/r0/membership/invite_user.rs index b527d4fe..112a258b 100644 --- a/crates/ruma-client-api/src/r0/membership/invite_user.rs +++ b/crates/ruma-client-api/src/r0/membership/invite_user.rs @@ -70,13 +70,13 @@ impl Response { #[incoming_derive(PartialEq)] #[serde(untagged)] pub enum InvitationRecipient<'a> { - /// Used to invite user by their Matrix identifer. + /// Used to invite user by their Matrix identifier. UserId { /// Matrix identifier of user. user_id: &'a UserId, }, - /// Used to invite user by a third party identifer. + /// Used to invite user by a third party identifier. ThirdPartyId(Invite3pid<'a>), } diff --git a/crates/ruma-client-api/src/r0/message.rs b/crates/ruma-client-api/src/r0/message.rs index 66d987b9..ebfd5064 100644 --- a/crates/ruma-client-api/src/r0/message.rs +++ b/crates/ruma-client-api/src/r0/message.rs @@ -1,4 +1,4 @@ -//! Enpoints for sending and receiving messages +//! Endpoints for sending and receiving messages pub mod get_message_events; pub mod send_message_event; diff --git a/crates/ruma-client-api/src/r0/push/get_pushers.rs b/crates/ruma-client-api/src/r0/push/get_pushers.rs index eabb1271..63f51424 100644 --- a/crates/ruma-client-api/src/r0/push/get_pushers.rs +++ b/crates/ruma-client-api/src/r0/push/get_pushers.rs @@ -57,7 +57,7 @@ pub struct Pusher { /// A reverse-DNS style identifier for the application. /// - /// The maximum allowed lenght is 64 bytes. + /// The maximum allowed length is 64 bytes. pub app_id: String, /// A string that will allow the user to identify what application owns this pusher. diff --git a/crates/ruma-client-api/src/r0/search/search_events.rs b/crates/ruma-client-api/src/r0/search/search_events.rs index d9c72505..1edbb270 100644 --- a/crates/ruma-client-api/src/r0/search/search_events.rs +++ b/crates/ruma-client-api/src/r0/search/search_events.rs @@ -217,7 +217,7 @@ impl EventContextResult { } } -/// A grouping for partioning the result set. +/// A grouping for partitioning the result set. #[derive(Clone, Default, Debug, Deserialize, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct Grouping { diff --git a/crates/ruma-client-api/src/r0/sync/sync_events.rs b/crates/ruma-client-api/src/r0/sync/sync_events.rs index 51fdb112..ddc6ee0e 100644 --- a/crates/ruma-client-api/src/r0/sync/sync_events.rs +++ b/crates/ruma-client-api/src/r0/sync/sync_events.rs @@ -79,7 +79,7 @@ ruma_api! { #[serde(default, skip_serializing_if = "GlobalAccountData::is_empty")] pub account_data: GlobalAccountData, - /// Messages sent dirrectly between devices. + /// Messages sent directly between devices. #[serde(default, skip_serializing_if = "ToDevice::is_empty")] pub to_device: ToDevice, @@ -539,7 +539,7 @@ impl Presence { } } -/// Messages sent dirrectly between devices. +/// Messages sent directly between devices. #[derive(Clone, Debug, Default, Deserialize, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct ToDevice { @@ -560,7 +560,7 @@ impl ToDevice { } } -/// Information on E2E device udpates. +/// Information on E2E device updates. #[derive(Clone, Debug, Default, Deserialize, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct DeviceLists { diff --git a/crates/ruma-client-api/src/r0/uiaa.rs b/crates/ruma-client-api/src/r0/uiaa.rs index 3f7c32c6..9691019a 100644 --- a/crates/ruma-client-api/src/r0/uiaa.rs +++ b/crates/ruma-client-api/src/r0/uiaa.rs @@ -729,7 +729,7 @@ impl IncomingUserIdentifier { } } -/// Credentials for thirdparty authentification (e.g. email / phone number). +/// Credentials for third-party authentication (e.g. email / phone number). #[derive(Clone, Debug, Deserialize, Serialize)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] pub struct ThirdpartyIdCredentials { diff --git a/crates/ruma-events/CHANGELOG.md b/crates/ruma-events/CHANGELOG.md index 90dd8f99..95fc6e8c 100644 --- a/crates/ruma-events/CHANGELOG.md +++ b/crates/ruma-events/CHANGELOG.md @@ -156,7 +156,7 @@ Breaking changes: ids without the need to understand the concrete method. * Change `get_message_events` limit field type from `Option` to `UInt` * Add `alt_aliases` to `CanonicalAliasEventContent` -* Replace `format` and `formatted_body` fields in `TextMessagEventContent`, +* Replace `format` and `formatted_body` fields in `TextMessageEventContent`, `NoticeMessageEventContent` and `EmoteMessageEventContent` with `formatted: FormattedBody` * Rename `override_rules` in `push_rules::Ruleset` to `override_` * Change `push_rules::PushCondition` variants from newtype variants with separate inner types to @@ -297,7 +297,7 @@ Improvements: Breaking changes: -* `collections::only` no longer exports a `raw` submodule. It was never meant ot be exported in the first place. +* `collections::only` no longer exports a `raw` submodule. It was never meant to be exported in the first place. * Renamed `stripped::{StrippedState => AnyStrippedStateEvent, StrippedStateContent => StrippedStateEvent}` Improvements: diff --git a/crates/ruma-identifiers-validation/CHANGELOG.md b/crates/ruma-identifiers-validation/CHANGELOG.md index 68238d2e..951e20a3 100644 --- a/crates/ruma-identifiers-validation/CHANGELOG.md +++ b/crates/ruma-identifiers-validation/CHANGELOG.md @@ -48,4 +48,4 @@ Improvements: Breaking changes: -* Remove `key_algorithms` module (moved to ruma-identifers as `crypto_algorithms`) +* Remove `key_algorithms` module (moved to ruma-identifiers as `crypto_algorithms`) diff --git a/crates/ruma-serde/src/strings.rs b/crates/ruma-serde/src/strings.rs index 4183f731..85f584f7 100644 --- a/crates/ruma-serde/src/strings.rs +++ b/crates/ruma-serde/src/strings.rs @@ -32,7 +32,7 @@ where } /// Serde serializiation decorator to map None to an empty String, -/// and forward Somes to the Serialize implemention for T. +/// and forward Somes to the Serialize implementation for T. /// /// To be used like this: /// `#[serde(serialize_with = "empty_string_as_none")]`