Skip to content

Commit

Permalink
Fix clippy (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan authored Oct 10, 2023
1 parent 323d3bd commit 85423c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,13 @@ deny = [

# Certain crates/versions that will be skipped when doing duplicate detection.
skip = [
{ name = "regex-syntax", version = "=0.6.29" },
{ name = "regex-automata", version = "=0.1.10" },
]
# Similarly to `skip` allows you to skip certain crates during duplicate
# detection. Unlike skip, it also includes the entire tree of transitive
# dependencies starting at the specified crate, up to a certain depth, which is
# by default infinite.
skip-tree = [
{ name = "regex-automata" },
{ name = "windows-sys" },
{ name = "reqwest" },
]
Expand Down
3 changes: 1 addition & 2 deletions foundation/metadata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ async fn test_on_gce() -> Result<bool, Error> {
let url = format!("http://{METADATA_IP}");

let response = client.get(&url).send().await;
if response.is_ok() {
let response = response.unwrap();
if let Ok(response) = response {
if response.status().is_success() {
let on_gce = match response.headers().get(METADATA_FLAVOR_KEY) {
None => false,
Expand Down

0 comments on commit 85423c3

Please sign in to comment.