From e03ea78f9b1878b4906d8b47c41483f2a6841510 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 20 Apr 2024 21:10:12 +0900 Subject: [PATCH] Unify string conversion style --- src/env.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env.rs b/src/env.rs index 387a64a..c57127a 100644 --- a/src/env.rs +++ b/src/env.rs @@ -344,9 +344,9 @@ mod tests { let mut config = crate::de::BuildConfig::default(); let cx = &ResolveOptions::default().env(env_list).into_context(std::env::current_dir().unwrap()); - config.rustc_wrapper = Some(Value { val: "rustc_wrapper".to_string(), definition: None }); + config.rustc_wrapper = Some(Value { val: "rustc_wrapper".to_owned(), definition: None }); config.rustc_workspace_wrapper = - Some(Value { val: "rustc_workspace_wrapper".to_string(), definition: None }); + Some(Value { val: "rustc_workspace_wrapper".to_owned(), definition: None }); config.apply_env(cx).unwrap(); assert!(config.rustc_wrapper.is_none()); assert!(config.rustc_workspace_wrapper.is_none());