Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Sep 5, 2024
1 parent 186e70b commit 182e54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/freighter-api-types/src/index/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use std::collections::HashMap;
pub struct RegistryConfig {
pub dl: String,
pub api: String,
#[serde(default)]
#[cfg_attr(any(feature = "client", feature = "server"), serde(default))]
pub auth_required: bool,
}

Expand Down Expand Up @@ -154,6 +154,7 @@ pub struct Dependency {
pub package: Option<String>,
}

#[allow(clippy::trivially_copy_pass_by_ref)]
fn is_false(b: &bool) -> bool {
!*b
}
Expand Down

0 comments on commit 182e54b

Please sign in to comment.