File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9c383deaa6683e5519ce6727e1d3d152d70e66a0
2
+ refs/heads/master: 4550cb05626a1b982560710d6757145049cca247
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
Original file line number Diff line number Diff line change @@ -285,9 +285,7 @@ pub mod ct {
285
285
}
286
286
pub fn parse_precision(s: &str, i: uint, lim: uint) ->
287
287
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 {
291
289
let count = parse_count(s, i + 1u, lim);
292
290
293
291
@@ -297,7 +295,7 @@ pub mod ct {
297
295
CountImplied => Parsed :: new ( CountIs ( 0 ) , count. next ) ,
298
296
_ => count
299
297
}
300
- } else { Parsed :: new ( CountImplied , i) } ;
298
+ } else { Parsed :: new ( CountImplied , i) }
301
299
}
302
300
pub fn parse_type( s : & str , i : uint , lim : uint , err : ErrorFn ) ->
303
301
Parsed < Ty > {
You can’t perform that action at this time.
0 commit comments