remove in_reply_to in error constructor arg
This commit is contained in:
parent
671fbfab24
commit
a2be482b6a
1 changed files with 1 additions and 2 deletions
|
@ -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()),
|
||||
|
|
Loading…
Reference in a new issue