Skip to content

Commit e17cfa1

Browse files
committed
---
yaml --- r: 41583 b: refs/heads/master c: 9c383de h: refs/heads/master i: 41581: 1485b9b 41579: 1e04bee 41575: e5bb9f9 41567: f064841 v: v3
1 parent 42f9399 commit e17cfa1

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f4bc9e6d57c1e005c6539db59762e4030bd7bd2f
2+
refs/heads/master: 9c383deaa6683e5519ce6727e1d3d152d70e66a0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libcore/extfmt.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ pub mod ct {
264264
}
265265
pub fn parse_count(s: &str, i: uint, lim: uint)
266266
-> Parsed<Count> {
267-
return if i >= lim {
267+
if i >= lim {
268268
Parsed::new(CountImplied, i)
269269
} else if s[i] == '*' as u8 {
270270
let param = parse_parameter(s, i + 1, lim);
@@ -274,15 +274,14 @@ pub mod ct {
274274
Some(n) => Parsed::new(CountIsParam(n), j)
275275
}
276276
} else {
277-
let num = peek_num(s, i, lim);
278-
match num {
277+
match peek_num(s, i, lim) {
279278
None => Parsed::new(CountImplied, i),
280279
Some(num) => Parsed::new(
281280
CountIs(num.val),
282281
num.next
283282
)
284283
}
285-
};
284+
}
286285
}
287286
pub fn parse_precision(s: &str, i: uint, lim: uint) ->
288287
Parsed<Count> {

0 commit comments

Comments
 (0)