Skip to content

Commit fe108ff

Browse files
committed
---
yaml --- r: 52132 b: refs/heads/dist-snap c: 4550cb0 h: refs/heads/master v: v3
1 parent b45a78c commit fe108ff

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
@@ -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: 9c383deaa6683e5519ce6727e1d3d152d70e66a0
10+
refs/heads/dist-snap: 4550cb05626a1b982560710d6757145049cca247
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: 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)