From ea519356015ba04edff7cb97a0f1ed024f48cdf8 Mon Sep 17 00:00:00 2001 From: Benjamin Kampmann Date: Tue, 27 Sep 2022 14:13:20 +0200 Subject: [PATCH] docs: Clarifications in the Upgrade guide --- UPGRADING-0.5-to-0.6.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADING-0.5-to-0.6.md b/UPGRADING-0.5-to-0.6.md index 111dab8bd..05fcb3b91 100644 --- a/UPGRADING-0.5-to-0.6.md +++ b/UPGRADING-0.5-to-0.6.md @@ -79,7 +79,7 @@ Boolean flags like `verified`, `deleted`, `blacklisted`, etc have been renamed w ### unresolved import `matrix_sdk::ruma::events::AnySyncRoomEvent` - Ruma has been updated to `0.7.0`, you will find some ruma Events names have changed, most notably, the `AnySyncRoomEvent` is now split into more specific `AnySyncStateEvent`s (which cargo suggests, unfortunately, wrong in most cases) and the `AnySyncTimelineEvent`. Usually it is the latter that is now to be used. But check the ruma changelog for your specific case! + Ruma has been updated to `0.7.0`, you will find some ruma Events names have changed, most notably, the `AnySyncRoomEvent` is now named `AnySyncTimelineEvent` (and not `AnySyncStateEvent`, which cargo wrongly suggests). Just rename the important and usage of it. ### `std::option::Option<&matrix_sdk::ruma::UserId>` is not a future @@ -97,7 +97,7 @@ help: remove the `.await` 19 + if room_member.state_key != client.user_id().unwrap() { ``` -You are using `client.user_id().await` but `user_id()` now returns an `Option` right away. Just follow the cargo suggestion and remove the `.await`, it is not necessary any longer. +You are using `client.user_id().await` but `user_id()` is no longer `async`. Just follow the cargo suggestion and remove the `.await`, it is not necessary any longer. [matrix-channel]: https://matrix.to/#/#matrix-rust-sdk:matrix.org