We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4bc9e6 commit 9c383deCopy full SHA for 9c383de
src/libcore/extfmt.rs
@@ -264,7 +264,7 @@ pub mod ct {
264
}
265
pub fn parse_count(s: &str, i: uint, lim: uint)
266
-> Parsed<Count> {
267
- return if i >= lim {
+ if i >= lim {
268
Parsed::new(CountImplied, i)
269
} else if s[i] == '*' as u8 {
270
let param = parse_parameter(s, i + 1, lim);
@@ -274,15 +274,14 @@ pub mod ct {
274
Some(n) => Parsed::new(CountIsParam(n), j)
275
276
} else {
277
- let num = peek_num(s, i, lim);
278
- match num {
+ match peek_num(s, i, lim) {
279
None => Parsed::new(CountImplied, i),
280
Some(num) => Parsed::new(
281
CountIs(num.val),
282
num.next
283
)
284
285
- };
+ }
286
287
pub fn parse_precision(s: &str, i: uint, lim: uint) ->
288
Parsed<Count> {
0 commit comments