Skip to content

Commit e49e6aa

Browse files
committed
clippy: Fix manual_ignore_case_cmp warning
1 parent e2af9cd commit e49e6aa

File tree

1 file changed

+1
-1
lines changed
  • crates/crates_io_tarball/src

1 file changed

+1
-1
lines changed

crates/crates_io_tarball/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub async fn process_tarball<R: tokio::io::AsyncRead + Unpin>(
111111
let mut contents = String::new();
112112
entry.read_to_string(&mut contents).await?;
113113
vcs_info = CargoVcsInfo::from_contents(&contents).ok();
114-
} else if entry_file.to_ascii_lowercase() == "cargo.toml" {
114+
} else if entry_file.eq_ignore_ascii_case("cargo.toml") {
115115
// Try to extract and read the Cargo.toml from the tarball, silently erroring if it
116116
// cannot be read.
117117
let owned_entry_path = entry_path.into_owned();

0 commit comments

Comments
 (0)