Skip to content

Commit 0c0e79c

Browse files
committed
format
1 parent 73c2ef9 commit 0c0e79c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/cargo/sources/registry/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
//! [`RemoteRegistry`]: super::remote::RemoteRegistry
8686
//! [`Dependency`]: crate::core::Dependency
8787
88-
use crate::core::dependency::{DepKind, Artifact};
88+
use crate::core::dependency::{Artifact, DepKind};
8989
use crate::core::Dependency;
9090
use crate::core::{PackageId, SourceId, Summary};
9191
use crate::sources::registry::{LoadResponse, RegistryData};

src/cargo/util/errors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ impl HttpNotSuccessful {
8787
.headers
8888
.iter()
8989
.filter(|header| {
90-
let Some((name, _)) = header.split_once(":") else { return false };
90+
let Some((name, _)) = header.split_once(":") else {
91+
return false;
92+
};
9193
DEBUG_HEADERS.contains(&name.to_ascii_lowercase().trim())
9294
})
9395
.collect();

0 commit comments

Comments
 (0)