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 9c383de commit 4550cb0Copy full SHA for 4550cb0
src/libcore/extfmt.rs
@@ -285,9 +285,7 @@ pub mod ct {
285
}
286
pub fn parse_precision(s: &str, i: uint, lim: uint) ->
287
Parsed<Count> {
288
- return if i >= lim {
289
- Parsed::new(CountImplied, i)
290
- } else if s[i] == '.' as u8 {
+ if i < lim && s[i] == '.' as u8 {
291
let count = parse_count(s, i + 1u, lim);
292
293
@@ -297,7 +295,7 @@ pub mod ct {
297
295
CountImplied => Parsed::new(CountIs(0), count.next),
298
296
_ => count
299
300
- } else { Parsed::new(CountImplied, i) };
+ } else { Parsed::new(CountImplied, i) }
301
302
pub fn parse_type(s: &str, i: uint, lim: uint, err: ErrorFn) ->
303
Parsed<Ty> {
0 commit comments