Commit Graph
16 Commits
Author SHA1 Message Date
Thomas Bahn 85d0c8e4e8 Rename FP* to FpCategory::* following std changes 2014-12-30 14:52:27 +01:00
Thomas Bahn 879baec029 Fix: String::from_utf8 changed function signature
Following a rust std change.
2014-12-23 18:35:26 +01:00
Thomas Bahn a276ec4bba Fix: Utf16 handling moved from std into unicode crate
Following a rust change.
2014-12-23 18:35:00 +01:00
Thomas Bahn 17ffa65cb2 Replace StrAllocating with String type in function parameters
The key parameter of the insert functions are of type String now.
As insert requires ownership of its parameter `key` and StrAllocating
being gone in rust these functions now communicate that ownership
in their signature.

As a result &str must be converted into a String at the caller instead
of the callee.

The Trait ToOwned isn't an alternative as it's a generalized Clone.
StrAllocating simply has hidden an allocation or move.
2014-12-23 18:34:20 +01:00
Thomas Bahn 512a54e983 Replace TreeMap with BTreeMap in the serde2 2014-12-23 18:33:37 +01:00
Thomas Bahn 7fa62b6212 Fix: Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-23 18:31:22 +01:00
Thomas Bahn 589a07d4c9 Silence deprecation warnings
str::char_len() is deprecated in favour of chars().count()
2014-12-23 18:05:58 +01:00
Thomas Bahn 91cfb003d9 Fix: String::from_utf8 changed function signature
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn 3cf0fb8d5b Fix: Utf16 handling moved from std into unicode crate
Following a rust change.
2014-12-23 18:05:58 +01:00
Thomas Bahn 0957d5769d Replace StrAllocating with String type in function parameters
The key parameter of the insert functions are of type String now.
As insert requires ownership of its parameter `key` and StrAllocating
being gone in rust these functions now communicate that ownership
in their signature.

As a result &str must be converted into a String at the caller instead
of the callee.

The Trait ToOwned isn't an alternative as it's a generalized Clone.
StrAllocating simply has hidden an allocation or move.
2014-12-23 18:05:58 +01:00
Thomas Bahn cca63836d2 Replace MoveItems and MoveEntries with IntoIter
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn 681a609844 Replace TreeMap with BTreeMap in the serde tests 2014-12-23 17:44:26 +01:00
Thomas Bahn 19bda6a90d Replace TreeMap/TreeSet with BTreeMap/BTreeSet in serde
Follow rust std changes:
https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
2014-12-20 14:42:48 +01:00
Thomas Bahn aad0854beb Fix item macro invocation in benches
Following changes in rustc.
2014-12-19 15:43:54 +01:00
Thomas Bahn 3ea0c7e850 Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-19 09:17:51 +01:00
Thomas Bahn d6807c0e90 Append semicolon to item macro invocations in serde
Following changes in rustc.
2014-12-19 08:59:11 +01:00