testing: Fix clippy (#859)

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile authored and GitHub committed 2023-03-13 12:06:13 +00:00
1 parent d4545de8cf
commit a02aa20a41
1 file changed
+1 -1
@@ -155,7 +155,7 @@ fn find_substrate_port_from_output(r: impl Read + Send + 'static) -> u16 {
.map(|(_, port_str)| port_str)?;
// trim non-numeric chars from the end of the port part of the line.
let port_str = line_end.trim_end_matches(|b| !('0'..='9').contains(&b));
let port_str = line_end.trim_end_matches(|b: char| !b.is_ascii_digit());
// expect to have a number here (the chars after '127.0.0.1:') and parse them into a u16.
let port_num = port_str.parse().unwrap_or_else(|_| {