aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/protocol.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-03-05 19:19:04 +0100
committerGitHub <noreply@github.com>2024-03-05 18:19:04 +0000
commit3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6 (patch)
treee2a91e49e76dbf6a01a7248cad62e1503ea64a50 /components/devtools/protocol.rs
parentda873779b496c9a1236cd92388efb1316f97e3d6 (diff)
downloadservo-3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6.tar.gz
servo-3552bb2464cbaa57facbcb9ad2bcb266bc5a87f6.zip
clippy: Fix several warnings in components/devtools (#31501)
Diffstat (limited to 'components/devtools/protocol.rs')
-rw-r--r--components/devtools/protocol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/devtools/protocol.rs b/components/devtools/protocol.rs
index 8edbce95a8c..5926e27701a 100644
--- a/components/devtools/protocol.rs
+++ b/components/devtools/protocol.rs
@@ -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()),
};