Skip to content

Commit aec7aa3

Browse files
committed
chore: Allow Clippy's result_large_err lint
1 parent 69015dd commit aec7aa3

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

rust/operator-binary/src/airflow_controller.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ async fn build_executor_template(
707707
}
708708

709709
/// The rolegroup [`ConfigMap`] configures the rolegroup based on the configuration given by the administrator
710-
#[allow(clippy::too_many_arguments)]
710+
#[allow(clippy::too_many_arguments, clippy::result_large_err)]
711711
fn build_rolegroup_config_map(
712712
airflow: &v1alpha1::AirflowCluster,
713713
resolved_product_image: &ResolvedProductImage,
@@ -815,6 +815,7 @@ fn build_rolegroup_config_map(
815815
})
816816
}
817817

818+
#[allow(clippy::result_large_err)]
818819
fn build_rolegroup_metadata(
819820
airflow: &v1alpha1::AirflowCluster,
820821
resolved_product_image: &&ResolvedProductImage,
@@ -840,6 +841,7 @@ fn build_rolegroup_metadata(
840841
Ok(metadata)
841842
}
842843

844+
#[allow(clippy::result_large_err)]
843845
pub fn build_group_listener(
844846
airflow: &v1alpha1::AirflowCluster,
845847
object_labels: ObjectLabels<v1alpha1::AirflowCluster>,
@@ -875,7 +877,7 @@ fn listener_ports() -> Vec<listener::v1alpha1::ListenerPort> {
875877
}
876878

877879
/// The rolegroup [`StatefulSet`] runs the rolegroup, as configured by the administrator.
878-
#[allow(clippy::too_many_arguments)]
880+
#[allow(clippy::too_many_arguments, clippy::result_large_err)]
879881
fn build_server_rolegroup_statefulset(
880882
airflow: &v1alpha1::AirflowCluster,
881883
resolved_product_image: &ResolvedProductImage,
@@ -1171,6 +1173,7 @@ fn build_server_rolegroup_statefulset(
11711173
})
11721174
}
11731175

1176+
#[allow(clippy::result_large_err)]
11741177
fn build_logging_container(
11751178
resolved_product_image: &ResolvedProductImage,
11761179
log_config: Option<&ContainerLogConfig>,
@@ -1192,7 +1195,7 @@ fn build_logging_container(
11921195
.context(ConfigureLoggingSnafu)
11931196
}
11941197

1195-
#[allow(clippy::too_many_arguments)]
1198+
#[allow(clippy::too_many_arguments, clippy::result_large_err)]
11961199
fn build_executor_template_config_map(
11971200
airflow: &v1alpha1::AirflowCluster,
11981201
resolved_product_image: &ResolvedProductImage,
@@ -1345,6 +1348,7 @@ pub fn error_policy(
13451348
}
13461349
}
13471350

1351+
#[allow(clippy::result_large_err)]
13481352
fn add_authentication_volumes_and_volume_mounts(
13491353
authentication_config: &AirflowClientAuthenticationDetailsResolved,
13501354
cb: &mut ContainerBuilder,
@@ -1381,6 +1385,7 @@ fn add_authentication_volumes_and_volume_mounts(
13811385
Ok(())
13821386
}
13831387

1388+
#[allow(clippy::result_large_err)]
13841389
fn add_git_sync_resources(
13851390
pb: &mut PodBuilder,
13861391
cb: &mut ContainerBuilder,

rust/operator-binary/src/crd/authentication.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ impl AirflowClientAuthenticationDetailsResolved {
263263
})
264264
}
265265

266+
#[allow(clippy::result_large_err)]
266267
fn from_oidc(
267268
auth_class_name: &str,
268269
provider: &oidc::v1alpha1::AuthenticationProvider,

rust/operator-binary/src/product_logging.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const LOG_CONFIG_FILE: &str = "log_config.py";
3939
const LOG_FILE: &str = "airflow.py.json";
4040

4141
/// Extend the ConfigMap with logging and Vector configurations
42+
#[allow(clippy::result_large_err)]
4243
pub fn extend_config_map_with_log_config<C, K>(
4344
rolegroup: &RoleGroupRef<K>,
4445
logging: &Logging<C>,

0 commit comments

Comments
 (0)