http: make clippy happy

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-05-14 15:44:40 +02:00 committed by Dietmar Maurer
parent 5153e68cab
commit cbaa3b45bc

View File

@ -202,8 +202,7 @@ pub fn create_frame(
0b00000000
};
let mut buf = Vec::new();
buf.push(first_byte);
let mut buf = vec![first_byte];
if len < 126 {
buf.push(mask_bit | (len as u8));