From 7d9a699d62ef10cfb6911e03e3f33391a0ffe97f Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Tue, 14 Jul 2020 11:06:31 +0200 Subject: [PATCH] Fix EventBuilder docstring example. --- matrix_sdk_test/src/lib.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/matrix_sdk_test/src/lib.rs b/matrix_sdk_test/src/lib.rs index dec775bc..3755e5d7 100644 --- a/matrix_sdk_test/src/lib.rs +++ b/matrix_sdk_test/src/lib.rs @@ -58,15 +58,14 @@ pub enum EventsJson { /// /// ```rust /// use matrix_sdk_test::{EventBuilder, EventsJson}; -/// use matrix_sdk_common::events::collections::all::RoomEvent; /// /// let mut builder = EventBuilder::new(); /// /// // response1 now contains events that add an example member to the room and change their power /// // level /// let response1 = builder -/// .add_room_event(EventsJson::Member, RoomEvent::RoomMember) -/// .add_room_event(EventsJson::PowerLevels, RoomEvent::RoomPowerLevels) +/// .add_room_event(EventsJson::Member) +/// .add_room_event(EventsJson::PowerLevels) /// .build_sync_response(); /// /// // response2 is now empty (nothing changed) @@ -74,7 +73,7 @@ pub enum EventsJson { /// /// // response3 contains a display name change for member example /// let response3 = builder -/// .add_room_event(EventsJson::MemberNameChange, RoomEvent::RoomMember) +/// .add_room_event(EventsJson::MemberNameChange) /// .build_sync_response(); /// ```