aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Gehring <mg@ebfe.org>2014-07-09 15:35:54 +0200
committerMichael Gehring <mg@ebfe.org>2014-07-09 15:46:49 +0200
commit46ab9eb436ecf1a1f4bd5a5e6088e75fd5f7e261 (patch)
tree48fad97188bb4223fc6faa3dcc720d9f2df983ac /src/test
parent624d5398184ccd500c3ce02338006f32f380fcc9 (diff)
downloadmilf-rs-46ab9eb436ecf1a1f4bd5a5e6088e75fd5f7e261.tar.gz
milf-rs-46ab9eb436ecf1a1f4bd5a5e6088e75fd5f7e261.zip
ToStr::to_str -> ToString::to_string
Diffstat (limited to 'src/test')
-rw-r--r--src/test/valid.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs
index bc46d1a..9a812d5 100644
--- a/src/test/valid.rs
+++ b/src/test/valid.rs
@@ -15,7 +15,7 @@ fn to_json(toml: Value) -> json::Json {
}
match toml {
String(s) => doit("string", json::String(s)),
- Integer(i) => doit("integer", json::String(i.to_str())),
+ Integer(i) => doit("integer", json::String(i.to_string())),
Float(f) => doit("float", json::String({
let (bytes, _) =
strconv::float_to_str_bytes_common(f, 10, true,
@@ -26,7 +26,7 @@ fn to_json(toml: Value) -> json::Json {
let s = String::from_utf8(bytes).unwrap();
if s.as_slice().contains(".") {s} else {format!("{}.0", s)}
})),
- Boolean(b) => doit("bool", json::String(b.to_str())),
+ Boolean(b) => doit("bool", json::String(b.to_string())),
Datetime(s) => doit("datetime", json::String(s)),
Array(arr) => {
let is_table = match arr.as_slice().head() {