From ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 9 Mar 2015 11:09:07 -0700 Subject: Reduce usage of unstable features --- tests/valid.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/valid.rs b/tests/valid.rs index 42cc9f4..5693492 100644 --- a/tests/valid.rs +++ b/tests/valid.rs @@ -43,7 +43,7 @@ fn run(toml: &str, json: &str) { let table = p.parse(); assert!(p.errors.len() == 0, "had_errors: {:?}", p.errors.iter().map(|e| { - (e.desc.clone(), toml.slice(e.lo - 5, e.hi + 5)) + (e.desc.clone(), &toml[e.lo - 5..e.hi + 5]) }).collect::>()); assert!(table.is_some()); let toml = Table(table.unwrap()); -- cgit v1.2.3