Cargo clippy on test code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bfe6c25f39
commit
9c79c3d93c
@ -44,7 +44,9 @@ mod test {
|
|||||||
const VAR_ONE: &str = "VAR_ONE";
|
const VAR_ONE: &str = "VAR_ONE";
|
||||||
#[test]
|
#[test]
|
||||||
fn test_apply_env_var() {
|
fn test_apply_env_var() {
|
||||||
env::set_var(VAR_ONE, "good");
|
unsafe {
|
||||||
|
env::set_var(VAR_ONE, "good");
|
||||||
|
}
|
||||||
let src = format!("This is ${{{}}}", VAR_ONE);
|
let src = format!("This is ${{{}}}", VAR_ONE);
|
||||||
assert_eq!("This is good", apply_env_vars(&src));
|
assert_eq!("This is good", apply_env_vars(&src));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user