Skip to content

Commit

Permalink
test_util clippy::inline_always
Browse files Browse the repository at this point in the history
  • Loading branch information
allan2 committed Jul 30, 2024
1 parent da380d3 commit 2022513
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test_util/src/envfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ use super::*;
/// [`DEFAULT_TEST_KEY`] set as [`DEFAULT_TEST_VALUE`]
///
/// [`DEFAULT_EXISTING_KEY`] set as [`DEFAULT_OVERRIDING_VALUE`]
#[inline(always)]
pub fn create_default_envfile() -> String {
format!(
"{DEFAULT_TEST_KEY}={DEFAULT_TEST_VALUE}\n{DEFAULT_EXISTING_KEY}={DEFAULT_OVERRIDING_VALUE}",
)
}

/// Invalid due to missing `=` between key and value.
#[inline(always)]
pub fn create_invalid_envfile() -> String {
format!(
"{DEFAULT_TEST_KEY}{DEFAULT_TEST_VALUE}\n{DEFAULT_EXISTING_KEY}{DEFAULT_OVERRIDING_VALUE}",
Expand Down

0 comments on commit 2022513

Please sign in to comment.