stygstra/rust-jwt — pull request #1 by drbawb (2014-12-23 20:28:46+00:00)
Title: Roll-up of several fixes for the latest nightly

The commit messages are pretty self explanatory; but this fixes a number of issues that have been introduced by the latest round of nightlies.

1. Certain macros need to be changed; they are parsed as expressions unless followed by a trailing semicolon.
2. TreeMap moved out of tree to `collect-rs`... however `BTreeMap` is a pretty suitable replacement; and it's almost certainly what you want to use here. (It's what `serialize::json` uses internally now.)
3. `StrAllocating` is gone and merged into `StrExt` -- however `into_string()` is also deprecated.
* StrAllocating is replaced by the more powerful `BorrowFrom`
* A test is added for `get(&str)` (`remove(&str)` works the same way...)
* `insert()` uses `ToOwned#to_owned()` instead of `into_string()` -- they perform the same function; it just moved to a more flexible trait.
4. UTF-8 parsing functions return `Result` now, so to use it with your `try_option!` macro we just call `.ok()` to convert it to an `Option`
5. `libserialize` has moved out of tree; I have adjusted the library imports accordingly.

Lemme know how it looks. Passes checks on my machine w/ `rustc 0.13.0-nightly (62fb41c32 2014-12-23 02:41:48 +0000)`