aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests
diff options
context:
space:
mode:
authorJohn-John Tedro <udoprog@tedro.se>2018-05-09 21:26:59 +0200
committerJohn-John Tedro <udoprog@tedro.se>2018-05-09 21:54:22 +0200
commit0a5fe3fff9a11b9684eb41be302606de0770f22d (patch)
tree2e561e663ef29d9f8f8a9977335c77ef9684f1a9 /test-suite/tests
parent87916e99adb29aac618b380f55c936a9cabdfc3a (diff)
downloadmilf-rs-0a5fe3fff9a11b9684eb41be302606de0770f22d.tar.gz
milf-rs-0a5fe3fff9a11b9684eb41be302606de0770f22d.zip
Make spanned module private and hide internals
Diffstat (limited to 'test-suite/tests')
-rw-r--r--test-suite/tests/spanned.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/test-suite/tests/spanned.rs b/test-suite/tests/spanned.rs
index 4339a0c..1b110f0 100644
--- a/test-suite/tests/spanned.rs
+++ b/test-suite/tests/spanned.rs
@@ -34,9 +34,9 @@ fn test_spanned_field() {
fn good<'de, T>(s: &'de str, expected: &str) where T: serde::Deserialize<'de> {
let foo: Foo<T> = toml::from_str(s).unwrap();
- assert_eq!(6, foo.foo.start);
- assert_eq!(s.len(), foo.foo.end);
- assert_eq!(expected, &s[foo.foo.start..foo.foo.end]);
+ assert_eq!(6, foo.foo.start());
+ assert_eq!(s.len(), foo.foo.end());
+ assert_eq!(expected, &s[foo.foo.start()..foo.foo.end()]);
}
good::<String>("foo = \"foo\"", "\"foo\"");