mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 15:39:11 +00:00
clippy
This commit is contained in:
parent
c792f46c59
commit
78a8a7b8b7
|
@ -79,7 +79,7 @@ impl AnnounceActivity {
|
||||||
let inner_kind = object
|
let inner_kind = object
|
||||||
.other
|
.other
|
||||||
.get("type")
|
.get("type")
|
||||||
.and_then(|e| e.as_str())
|
.and_then(serde_json::Value::as_str)
|
||||||
.unwrap_or("other");
|
.unwrap_or("other");
|
||||||
let id =
|
let id =
|
||||||
generate_announce_activity_id(inner_kind, &context.settings().get_protocol_and_hostname())?;
|
generate_announce_activity_id(inner_kind, &context.settings().get_protocol_and_hostname())?;
|
||||||
|
|
Loading…
Reference in a new issue