Skip to content

Commit cdf3a46

Browse files
authored
build.rs: Address clippy::single_char_pattern (#686)
1 parent 5f7a910 commit cdf3a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn rustc_minor_version() -> Option<u64> {
2626
// where "xx" is the minor version which we want to extract
2727
let mut lines = stdout.lines();
2828
let first_line = lines.next()?;
29-
let minor_ver_str = first_line.split(".").nth(1)?;
29+
let minor_ver_str = first_line.split('.').nth(1)?;
3030
minor_ver_str.parse().ok()
3131
}
3232

0 commit comments

Comments
 (0)