mozilla/rust — pull request #5840 by erickt (2013-04-11 15:53:57+00:00)
Title: Change result::map to consume the result

This changes `result::map` to use moves instead of copies to transform one result into another. This makes the function usable when result is wrapping uncopyable values.

Also, it includes a minor cleanup of serialize.rs.