]> git.lizzy.rs Git - rust.git/commit
regex: remove the use of ~[] & some unnecessary ~'s.
authorHuon Wilson <dbau.pp+github@gmail.com>
Tue, 29 Apr 2014 14:05:59 +0000 (00:05 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Tue, 29 Apr 2014 14:55:20 +0000 (00:55 +1000)
commitde14a739ae27088acaa3c5e21949a39bffd5313b
tree3e72491c501790b6569cb96c7e2f903e80fe2425
parent7a19a82d119ca51ed872ed207bed396cdf4a3283
regex: remove the use of ~[] & some unnecessary ~'s.

The AST doesn't need ~s everywhere, so we can save allocations this way
& the enum isn't particularly large (~4 words) nor are regexes
long (normally), so the space saved in the `Cat` vector is unlikely to
be very much.
src/libregex/compile.rs
src/libregex/lib.rs
src/libregex/parse.rs
src/libregex/re.rs
src/libregex/test/bench.rs
src/libregex_macros/lib.rs