Skip to content

Commit 272d915

Browse files
authored
Server: Appease clippy (svix#1002)
Address clippy errors occurring on beta
1 parent 4254811 commit 272d915

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

server/svix-server/src/core/webhook_http_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ impl RequestBuilder {
395395
.unwrap_or(HeaderValue::from_static("application/json")),
396396
);
397397

398-
headers.extend(custom_headers.into_iter());
398+
headers.extend(custom_headers);
399399

400400
if let Some(user_agent) = self.user_agent {
401401
headers.insert(http::header::USER_AGENT, user_agent);

server/svix-server/src/db/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub async fn wipe_org(cfg: &Configuration, org_id: OrganizationId) {
124124
macro_rules! transaction {
125125
($db:expr, $do:expr) => {
126126
$crate::ctx!(
127+
#[allow(clippy::redundant_closure_call)]
127128
sea_orm::TransactionTrait::transaction::<_, _, $crate::error::Error>($db, |txn| {
128129
std::boxed::Box::pin({ $do(txn) })
129130
})

server/svix-server/src/db/models/eventtype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl Entity {
7474
pub fn filter_feature_flags(query: Select<Self>, flags: FeatureFlagSet) -> Select<Self> {
7575
query.filter(
7676
sea_orm::Condition::any()
77-
.add(Column::FeatureFlag.is_in(flags.into_iter()))
77+
.add(Column::FeatureFlag.is_in(flags))
7878
.add(Column::FeatureFlag.is_null()),
7979
)
8080
}

0 commit comments

Comments
 (0)