refactor: small improvements

This commit is contained in:
Timo Kösters 2022-04-06 18:49:46 +02:00
parent ee96a03d60
commit 566833111c
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
4 changed files with 16 additions and 8 deletions

View file

@ -62,7 +62,7 @@ pub async fn report_event_route(
pdu.room_id,
pdu.sender,
body.score,
HtmlEscape(&body.reason.clone().unwrap_or(String::new()))
HtmlEscape(body.reason.as_deref().unwrap_or(""))
),
));