From a2be482b6a31498a3b4922a3217f4aadede207a9 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Mon, 10 Jun 2024 11:48:12 -0700 Subject: [PATCH] remove in_reply_to in error constructor arg --- src/protocol.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocol.rs b/src/protocol.rs index 97bbc8d..4561ec7 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -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()),