add copy function
This commit is contained in:
@@ -28,7 +28,7 @@ impl NewMessage {
|
||||
/// Trash message.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub struct FailedMessage {
|
||||
pub raw_event: String,
|
||||
pub raw_event: SharedString,
|
||||
pub reason: SharedString,
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ impl FailedMessage {
|
||||
T: Into<SharedString>,
|
||||
{
|
||||
Self {
|
||||
raw_event: event.as_json(),
|
||||
raw_event: SharedString::from(event.as_json()),
|
||||
reason: reason.into(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user