From 2e0a765820a3956cd34d2a0fd2cffc28d523b4b6 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Sun, 26 Jul 2020 16:04:12 +0200 Subject: [PATCH] Fix mistakenly renamed struct --- ruma-client-api/CHANGELOG.md | 2 ++ ruma-client-api/src/r0/search/search_events.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ruma-client-api/CHANGELOG.md b/ruma-client-api/CHANGELOG.md index bc0ad93d..c9036020 100644 --- a/ruma-client-api/CHANGELOG.md +++ b/ruma-client-api/CHANGELOG.md @@ -30,6 +30,8 @@ Breaking changes: session::login, } ``` +* Rename `r0::search::search_events::{RoomEventJsons => ResultRoomEvents}`. The previous name was an + error introduced in a mass search and replace Improvements: diff --git a/ruma-client-api/src/r0/search/search_events.rs b/ruma-client-api/src/r0/search/search_events.rs index bb8af819..9237bf99 100644 --- a/ruma-client-api/src/r0/search/search_events.rs +++ b/ruma-client-api/src/r0/search/search_events.rs @@ -194,12 +194,12 @@ pub enum OrderBy { pub struct ResultCategories { /// Room event results. #[serde(skip_serializing_if = "Option::is_none")] - pub room_events: Option, + pub room_events: Option, } /// Categories of events that can be searched for. #[derive(Clone, Debug, Deserialize, Serialize)] -pub struct RoomEventJsons { +pub struct ResultRoomEvents { /// An approximate count of the total number of results found. pub count: UInt,