mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-02 02:35:31 +00:00
aquatic_http, aquatic_common_tcp: fix some clippy warnings
This commit is contained in:
parent
8269ae2994
commit
b65297195a
5 changed files with 8 additions and 11 deletions
|
|
@ -71,8 +71,8 @@ pub enum Response {
|
|||
|
||||
|
||||
impl Response {
|
||||
pub fn to_bytes(self) -> Vec<u8> {
|
||||
match bendy::serde::to_bytes(&self){
|
||||
pub fn to_bytes(&self) -> Vec<u8> {
|
||||
match bendy::serde::to_bytes(self){
|
||||
Ok(bytes) => bytes,
|
||||
Err(err) => {
|
||||
log::error!("error encoding response: {}", err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue