From 08ee157be0d9a3f97f5b5b1e0dad6a744285644c Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sun, 8 Jun 2025 23:27:01 -0700 Subject: [PATCH] build.rs: Address `clippy::single_char_pattern`. --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 14aaf0c80..b87d2e55d 100644 --- a/build.rs +++ b/build.rs @@ -26,7 +26,7 @@ fn rustc_minor_version() -> Option { // where "xx" is the minor version which we want to extract let mut lines = stdout.lines(); let first_line = lines.next()?; - let minor_ver_str = first_line.split(".").nth(1)?; + let minor_ver_str = first_line.split('.').nth(1)?; minor_ver_str.parse().ok() }