Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Jul 31, 2023
1 parent d0d2f11 commit 5be6864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/sources/registry/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
//! [`RemoteRegistry`]: super::remote::RemoteRegistry
//! [`Dependency`]: crate::core::Dependency
use crate::core::dependency::{DepKind, Artifact};
use crate::core::dependency::{Artifact, DepKind};
use crate::core::Dependency;
use crate::core::{PackageId, SourceId, Summary};
use crate::sources::registry::{LoadResponse, RegistryData};
Expand Down
4 changes: 3 additions & 1 deletion src/cargo/util/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ impl HttpNotSuccessful {
.headers
.iter()
.filter(|header| {
let Some((name, _)) = header.split_once(":") else { return false };
let Some((name, _)) = header.split_once(":") else {
return false;
};
DEBUG_HEADERS.contains(&name.to_ascii_lowercase().trim())
})
.collect();
Expand Down

0 comments on commit 5be6864

Please sign in to comment.