File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/snap-stage3/src/libregex Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 01d2e46a2d952c65071b363701faa6eea952d55f
4
+ refs/heads/snap-stage3: 61ba334452102e7c7bf227927d56c28ec4f025f3
5
5
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ impl<'t> Replacer for &'t str {
585
585
}
586
586
}
587
587
588
- impl < ' t > Replacer for | & Captures | : ' t -> String {
588
+ impl < F > Replacer for F where F : FnMut ( & Captures ) -> String {
589
589
fn reg_replace < ' a > ( & ' a mut self , caps : & Captures ) -> CowString < ' a > {
590
590
( * self ) ( caps) . into_cow ( )
591
591
}
@@ -767,7 +767,7 @@ impl<'t> Captures<'t> {
767
767
// How evil can you get?
768
768
// FIXME: Don't use regexes for this. It's completely unnecessary.
769
769
let re = Regex :: new ( r"(^|[^$]|\b)\$(\w+)" ) . unwrap ( ) ;
770
- let text = re. replace_all ( text, |refs : & Captures | -> String {
770
+ let text = re. replace_all ( text, |& mut : refs: & Captures | -> String {
771
771
let ( pre, name) = ( refs. at ( 1 ) , refs. at ( 2 ) ) ;
772
772
format ! ( "{}{}" , pre,
773
773
match from_str:: <uint>( name. as_slice( ) ) {
You can’t perform that action at this time.
0 commit comments