Skip to content

Commit c470c5b

Browse files
committed
---
yaml --- r: 41584 b: refs/heads/master c: 4550cb0 h: refs/heads/master v: v3
1 parent e17cfa1 commit c470c5b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-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: 9c383deaa6683e5519ce6727e1d3d152d70e66a0
2+
refs/heads/master: 4550cb05626a1b982560710d6757145049cca247
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libcore/extfmt.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,7 @@ pub mod ct {
285285
}
286286
pub fn parse_precision(s: &str, i: uint, lim: uint) ->
287287
Parsed<Count> {
288-
return if i >= lim {
289-
Parsed::new(CountImplied, i)
290-
} else if s[i] == '.' as u8 {
288+
if i < lim && s[i] == '.' as u8 {
291289
let count = parse_count(s, i + 1u, lim);
292290
293291
@@ -297,7 +295,7 @@ pub mod ct {
297295
CountImplied => Parsed::new(CountIs(0), count.next),
298296
_ => count
299297
}
300-
} else { Parsed::new(CountImplied, i) };
298+
} else { Parsed::new(CountImplied, i) }
301299
}
302300
pub fn parse_type(s: &str, i: uint, lim: uint, err: ErrorFn) ->
303301
Parsed<Ty> {

0 commit comments

Comments
 (0)