mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
clippy: Fix several warnings in components/devtools (#31501)
This commit is contained in:
parent
da873779b4
commit
3552bb2464
18 changed files with 85 additions and 86 deletions
|
@ -80,7 +80,7 @@ impl JsonPacketStream for TcpStream {
|
|||
Ok(packet_len) => packet_len,
|
||||
Err(_) => return Err("nonvalid UTF8 in packet length".to_owned()),
|
||||
};
|
||||
let packet_len = match u64::from_str_radix(&packet_len_str, 10) {
|
||||
let packet_len = match packet_len_str.parse::<u64>() {
|
||||
Ok(packet_len) => packet_len,
|
||||
Err(_) => return Err("packet length missing / not parsable".to_owned()),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue