refactor to pdu.get_content() for serde_json::from_ elim
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -102,7 +102,7 @@ impl Service {
|
||||
return false;
|
||||
}
|
||||
|
||||
let Ok(content) = serde_json::from_str::<ExtractRelatesToEventId>(pdu.content.get()) else {
|
||||
let Ok(content) = pdu.get_content::<ExtractRelatesToEventId>() else {
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user