We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy::single_char_pattern
1 parent 5f7a910 commit cdf3a46Copy full SHA for cdf3a46
1 file changed
build.rs
@@ -26,7 +26,7 @@ fn rustc_minor_version() -> Option<u64> {
26
// where "xx" is the minor version which we want to extract
27
let mut lines = stdout.lines();
28
let first_line = lines.next()?;
29
- let minor_ver_str = first_line.split(".").nth(1)?;
+ let minor_ver_str = first_line.split('.').nth(1)?;
30
minor_ver_str.parse().ok()
31
}
32
0 commit comments