Skip to content

Commit b45a78c

Browse files
committed
---
yaml --- r: 52131 b: refs/heads/dist-snap c: 9c383de h: refs/heads/master i: 52129: cb5fed8 52127: b8c9d96 v: v3
1 parent 6d5d0b1 commit b45a78c

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
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: f4bc9e6d57c1e005c6539db59762e4030bd7bd2f
10+
refs/heads/dist-snap: 9c383deaa6683e5519ce6727e1d3d152d70e66a0
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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)