Skip to content

Commit

Permalink
libc-test: remove useless clone in build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenx97 committed Aug 7, 2023
1 parent 28ab9b9 commit 6652fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-test/build.rs
Expand Up @@ -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()
Expand Down

0 comments on commit 6652fe1

Please sign in to comment.