]> git.lizzy.rs Git - rust.git/commit
Change `to_string` to `to_owned` when it just creates a `String` from a `&str`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 30 Apr 2015 08:31:42 +0000 (10:31 +0200)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Thu, 30 Apr 2015 08:31:42 +0000 (10:31 +0200)
commit5247d98d31898326555c6e35780e0388d5e35514
tree6fea184f3eca360a3dcd98b87d4efa7cbd89cf2c
parent35b0081543de176d20de314ee74966326b90efbc
Change `to_string` to `to_owned` when it just creates a `String` from a `&str`

This means that it doesn't have to go through the formatting hierarchy and can
just immediately reserve enough memory.
src/changes.rs
src/functions.rs
src/imports.rs
src/mod.rs
src/visitor.rs