From bc450b17e3bfe1c195f8f286a3228cca1f706a74 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 7 Aug 2014 12:56:26 -0700 Subject: core: Change the argument order on splitn and rsplitn for strs. This makes it consistent with the same functions for slices, and allows the search closure to be specified last. [breaking-change] --- src/compiletest/header.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiletest') diff --git a/src/compiletest/header.rs b/src/compiletest/header.rs index aa96f3e2727..f6cd217b580 100644 --- a/src/compiletest/header.rs +++ b/src/compiletest/header.rs @@ -233,7 +233,7 @@ fn parse_exec_env(line: &str) -> Option<(String, String)> { parse_name_value_directive(line, "exec-env").map(|nv| { // nv is either FOO or FOO=BAR let mut strs: Vec = nv.as_slice() - .splitn('=', 1) + .splitn(1, '=') .map(|s| s.to_string()) .collect(); -- cgit 1.4.1-3-g733a5