Updated reply to include document name.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
@@ -40,6 +40,7 @@ impl MessageAction for MsgAction {
|
||||
Self::Query(data) => data.doc_name(),
|
||||
Self::Records(data) => data.doc_name(),
|
||||
Self::Register(data) => data.doc_name(),
|
||||
Self::Reply(data) => data.doc_name(),
|
||||
_ => &NameType::None,
|
||||
}
|
||||
}
|
||||
@@ -159,7 +160,7 @@ mod msgactions {
|
||||
|
||||
#[test]
|
||||
fn turn_reply_into_action() {
|
||||
let value = Reply::new();
|
||||
let value = Reply::new(Name::english("something"));
|
||||
let result: MsgAction = value.into();
|
||||
match result {
|
||||
MsgAction::Reply(_) => {}
|
||||
|
||||
Reference in New Issue
Block a user