diff options
author | Alex Crichton <alex@alexcrichton.com> | 2014-07-09 10:49:25 -0400 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2014-07-09 10:49:25 -0400 |
commit | a0f1ea65fc80379f0c6c095d92fad840004aaa56 (patch) | |
tree | 48fad97188bb4223fc6faa3dcc720d9f2df983ac /src/test | |
parent | 624d5398184ccd500c3ce02338006f32f380fcc9 (diff) | |
parent | 46ab9eb436ecf1a1f4bd5a5e6088e75fd5f7e261 (diff) | |
download | milf-rs-a0f1ea65fc80379f0c6c095d92fad840004aaa56.tar.gz milf-rs-a0f1ea65fc80379f0c6c095d92fad840004aaa56.zip |
Merge pull request #4 from ebfe/fix-build-master
ToStr::to_str -> ToString::to_string
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/valid.rs | 4 |
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() { |