Skip to content

Commit ac47c1b

Browse files
committed
fix: suppress clippy warnings for large error types in config tests
1 parent 457a020 commit ac47c1b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/configuration/src/v2_0_0

packages/configuration/src/v2_0_0/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ mod tests {
521521
}
522522

523523
#[test]
524+
#[allow(clippy::result_large_err)]
524525
fn configuration_should_use_the_default_values_when_only_the_mandatory_options_are_provided_by_the_user_via_toml_file() {
525526
figment::Jail::expect_with(|jail| {
526527
jail.create_file(
@@ -552,6 +553,7 @@ mod tests {
552553
}
553554

554555
#[test]
556+
#[allow(clippy::result_large_err)]
555557
fn configuration_should_use_the_default_values_when_only_the_mandatory_options_are_provided_by_the_user_via_toml_content() {
556558
figment::Jail::expect_with(|_jail| {
557559
let config_toml = r#"
@@ -581,6 +583,7 @@ mod tests {
581583
}
582584

583585
#[test]
586+
#[allow(clippy::result_large_err)]
584587
fn default_configuration_could_be_overwritten_from_a_single_env_var_with_toml_contents() {
585588
figment::Jail::expect_with(|_jail| {
586589
let config_toml = r#"
@@ -613,6 +616,7 @@ mod tests {
613616
}
614617

615618
#[test]
619+
#[allow(clippy::result_large_err)]
616620
fn default_configuration_could_be_overwritten_from_a_toml_config_file() {
617621
figment::Jail::expect_with(|jail| {
618622
jail.create_file(
@@ -646,6 +650,7 @@ mod tests {
646650
});
647651
}
648652

653+
#[allow(clippy::result_large_err)]
649654
#[test]
650655
fn configuration_should_allow_to_overwrite_the_default_tracker_api_token_for_admin_with_an_env_var() {
651656
figment::Jail::expect_with(|jail| {

0 commit comments

Comments
 (0)