From 6652fe1ec8c07ee066c8eb9cd4d4ec85dce426fc Mon Sep 17 00:00:00 2001 From: Henry Chen Date: Mon, 7 Aug 2023 13:27:08 +0800 Subject: [PATCH] libc-test: remove useless clone in build.rs --- libc-test/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 276efb481486c..bfe1ed16f3951 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -642,7 +642,7 @@ fn test_windows(target: &str) { // Windows uppercase structs don't have `struct` in front: t if is_struct => { - if ty.clone().chars().next().unwrap().is_uppercase() { + if ty.chars().next().unwrap().is_uppercase() { t.to_string() } else if t == "stat" { "struct __stat64".to_string()