remove in_reply_to in error constructor arg

This commit is contained in:
Joe Ardent 2024-06-10 11:48:12 -07:00
parent 671fbfab24
commit a2be482b6a

View file

@ -103,9 +103,8 @@ impl Body {
b b
} }
pub fn error(code: ErrorCode, in_reply_to: u64, text: Option<&str>) -> Self { pub fn error(code: ErrorCode, text: Option<&str>) -> Self {
Body { Body {
in_reply_to,
typ: "error".to_string(), typ: "error".to_string(),
code: Some(code), code: Some(code),
text: text.map(|t| t.to_string()), text: text.map(|t| t.to_string()),