From 5ba6b7a437912ff40a216d3f99f963998b408911 Mon Sep 17 00:00:00 2001 From: Christian Fochler Date: Mon, 29 Jan 2018 08:05:59 +0100 Subject: add default prefix separator - no need to add '_' to the prefix --- tests/env.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/env.rs') diff --git a/tests/env.rs b/tests/env.rs index fc93f15..2a55d7f 100644 --- a/tests/env.rs +++ b/tests/env.rs @@ -18,7 +18,7 @@ fn test_default() { fn test_prefix_is_removed_from_key() { env::set_var("B_A_C", "abc"); - let environment = Environment::with_prefix("B_"); + let environment = Environment::with_prefix("B"); assert!(environment.collect().unwrap().contains_key("a_c")); -- cgit v1.2.3