mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_udp: use Cow<'static, str> for ErrorResponse.message
This commit is contained in:
parent
881579435a
commit
31b88a5e9d
4 changed files with 8 additions and 7 deletions
|
|
@ -152,9 +152,9 @@ fn read_requests(
|
|||
|
||||
if let Some(transaction_id) = err.transaction_id {
|
||||
let opt_message = if err.error.is_some() {
|
||||
Some("Parse error".to_string())
|
||||
Some("Parse error".into())
|
||||
} else if let Some(message) = err.message {
|
||||
Some(message)
|
||||
Some(message.into())
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue