Skip to content

Commit 7487c83

Browse files
committed
fix(core-rs): resolve clippy warnings
1 parent 5269fb5 commit 7487c83

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/headless-rs/src/url.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl Url {
2626
}
2727

2828
// authority runs until the first '/', '?', or '#'
29-
let after_authority = rest.find(|c| c == '/' || c == '?' || c == '#');
29+
let after_authority = rest.find(['/', '?', '#']);
3030
let (authority, tail) = match after_authority {
3131
Some(i) => (&rest[..i], &rest[i..]),
3232
None => (rest, ""),

‎apps/headless-rs/tests/protocol_tests.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fn message_size_limit() {
9696
// A line over the 1 MiB cap must be rejected at the decode boundary.
9797
let big = "x".repeat(headless_protocol::HEADLESS_MAXIMUM_MESSAGE_BYTES);
9898
let mut oversized = Vec::new();
99-
oversized.extend_from_slice(&big.as_bytes());
99+
oversized.extend_from_slice(big.as_bytes());
100100
oversized.push(b'\n');
101101
let result: Result<CommandRequest, _> = codec::decode_line(&oversized);
102102
assert!(result.is_err(), "oversized frame must be rejected");

0 commit comments

Comments
 (0)