mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-03 03:05: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
|
|
@ -52,7 +52,7 @@ pub fn handle_announce_requests(
|
|||
} else {
|
||||
Response::Error(ErrorResponse {
|
||||
transaction_id: request.transaction_id,
|
||||
message: "Info hash not allowed".to_string(),
|
||||
message: "Info hash not allowed".into(),
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue