aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-09 11:09:07 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-09 11:09:07 -0700
commitff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b (patch)
tree8a4ea1156fb932cc8dc72171c6d81450ea24d52f /tests
parente14c2052b721d4f400f240e5711ed9510dd1b102 (diff)
downloadmilf-rs-ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b.tar.gz
milf-rs-ff3bb7d25505a565f8bdfd73b1105ae15a1e6f4b.zip
Reduce usage of unstable features
Diffstat (limited to 'tests')
-rw-r--r--tests/valid.rs2
1 files changed, 1 insertions, 1 deletions
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::<Vec<(String, &str)>>());
assert!(table.is_some());
let toml = Table(table.unwrap());