We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
manual_ignore_case_cmp
1 parent e2af9cd commit e49e6aaCopy full SHA for e49e6aa
crates/crates_io_tarball/src/lib.rs
@@ -111,7 +111,7 @@ pub async fn process_tarball<R: tokio::io::AsyncRead + Unpin>(
111
let mut contents = String::new();
112
entry.read_to_string(&mut contents).await?;
113
vcs_info = CargoVcsInfo::from_contents(&contents).ok();
114
- } else if entry_file.to_ascii_lowercase() == "cargo.toml" {
+ } else if entry_file.eq_ignore_ascii_case("cargo.toml") {
115
// Try to extract and read the Cargo.toml from the tarball, silently erroring if it
116
// cannot be read.
117
let owned_entry_path = entry_path.into_owned();
0 commit comments