Skip to content

Commit f9d82a1

Browse files
committed
lint: remove unused dbg!
1 parent 4cc9208 commit f9d82a1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

crates/cargo-test-support/src/registry.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,6 @@ impl HttpServer {
846846
if footer.url != "https://github.com/rust-lang/crates.io-index"
847847
&& footer.url != &format!("sparse+http://{}/index/", self.addr.to_string())
848848
{
849-
dbg!(footer.url);
850849
return false;
851850
}
852851

@@ -869,13 +868,11 @@ impl HttpServer {
869868
return false;
870869
}
871870
if private_key_subject.as_deref() != message.sub {
872-
dbg!(message.sub);
873871
return false;
874872
}
875873
// - If the claim v is set, that it has the value of 1.
876874
if let Some(v) = message.v {
877875
if v != 1 {
878-
dbg!(message.v);
879876
return false;
880877
}
881878
}
@@ -885,22 +882,18 @@ impl HttpServer {
885882
if let Some(mutation) = mutation {
886883
// - That the operation matches the mutation field and is one of publish, yank, or unyank.
887884
if message.mutation != Some(mutation.mutation) {
888-
dbg!(message.mutation);
889885
return false;
890886
}
891887
// - That the package, and version match the request.
892888
if message.name != mutation.name {
893-
dbg!(message.name);
894889
return false;
895890
}
896891
if message.vers != mutation.vers {
897-
dbg!(message.vers);
898892
return false;
899893
}
900894
// - If the mutation is publish, that the version has not already been published, and that the hash matches the request.
901895
if mutation.mutation == "publish" {
902896
if message.cksum != mutation.cksum {
903-
dbg!(message.cksum);
904897
return false;
905898
}
906899
}

0 commit comments

Comments
 (0)