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
1 changed files with 1 additions and 2 deletions

View File

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