[fractal] fractal-matrix-api: quiet compilation warnings
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] fractal-matrix-api: quiet compilation warnings
- Date: Mon, 13 Apr 2020 06:59:24 +0000 (UTC)
commit 65334765f35dd3ec237b680ca963001ec11910a3
Author: David Heidelberg <david ixit cz>
Date: Sun Apr 12 11:08:09 2020 +0200
fractal-matrix-api: quiet compilation warnings
Signed-off-by: David Heidelberg <david ixit cz>
fractal-gtk/src/actions/mod.rs | 2 +-
fractal-matrix-api/src/model/room.rs | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/fractal-gtk/src/actions/mod.rs b/fractal-gtk/src/actions/mod.rs
index 29a5c4fc..9bc96f5c 100644
--- a/fractal-gtk/src/actions/mod.rs
+++ b/fractal-gtk/src/actions/mod.rs
@@ -43,7 +43,7 @@ impl From<bool> for ButtonState {
impl From<ButtonState> for bool {
fn from(v: ButtonState) -> bool {
- (v == ButtonState::Sensitive)
+ v == ButtonState::Sensitive
}
}
diff --git a/fractal-matrix-api/src/model/room.rs b/fractal-matrix-api/src/model/room.rs
index af42612b..f30d5368 100644
--- a/fractal-matrix-api/src/model/room.rs
+++ b/fractal-matrix-api/src/model/room.rs
@@ -400,10 +400,10 @@ fn calculate_room_name(events: &Vec<JsonValue>, user_id: &UserId) -> Option<Stri
let members: Vec<&str> = events
.iter()
.filter(|x| {
- (x["type"] == "m.room.member"
+ x["type"] == "m.room.member"
&& ((x["content"]["membership"] == "join" && x["sender"] != userid.as_str())
|| (x["content"]["membership"] == "invite"
- && x["state_key"] != userid.as_str())))
+ && x["state_key"] != userid.as_str()))
})
.take(3)
.map(|m| {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]