Run cargo fmt.

master
Denis Kasak 2020-06-09 16:41:26 +02:00
parent b93eb0e318
commit a3c46c6144
1 changed files with 11 additions and 8 deletions

View File

@ -315,14 +315,17 @@ impl Room {
.get(id) .get(id)
.map(|s| s.as_str().into()) .map(|s| s.as_str().into())
.unwrap_or_else(|| { .unwrap_or_else(|| {
self.members.get(id).map(|member| { self.members
member .get(id)
.display_name .map(|member| {
.as_ref() member
.map(|s| s.to_string()) .display_name
.unwrap_or_else(|| format!("{}", member.user_id)) .as_ref()
.into() .map(|s| s.to_string())
}).unwrap_or(id.as_ref().into()) .unwrap_or_else(|| format!("{}", member.user_id))
.into()
})
.unwrap_or(id.as_ref().into())
}) })
} }