Skip to content

Commit 1ca1c7d

Browse files
committed
---
yaml --- r: 232914 b: refs/heads/try c: 52e7f55 h: refs/heads/master v: v3
1 parent 8c0a9e1 commit 1ca1c7d

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: edeb4f1c86cbf6af8ef9874d4b3af50f721ea1b8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: 370fe2786109360f7c35b8ba552b83b773dd71d6
4+
refs/heads/try: 52e7f5553e85cc939b25b478f83c32b91dc3885e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/libfmt_macros/lib.rs

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ impl<'a> Parser<'a> {
190190
/// String, but I think it does when this eventually uses conditions so it
191191
/// might as well start using it now.
192192
fn err(&mut self, msg: &str) {
193-
self.errors.push(msg.to_owned());
193+
self.errors.push(msg.to_string());
194194
}
195195

196196
/// Optionally consumes the specified character. If the character is not at
@@ -353,7 +353,7 @@ impl<'a> Parser<'a> {
353353
} else {
354354
spec.ty = self.word();
355355
}
356-
spec
356+
return spec;
357357
}
358358

359359
/// Parses a Count parameter at the current position. This does not check
@@ -417,19 +417,25 @@ impl<'a> Parser<'a> {
417417
fn integer(&mut self) -> Option<usize> {
418418
let mut cur = 0;
419419
let mut found = false;
420-
while let Some((_, c)) = self.cur.clone().next() {
421-
if let Some(i) = c.to_digit(10) {
422-
cur = cur * 10 + i as usize;
423-
found = true;
424-
self.cur.next();
425-
} else {
426-
break
420+
loop {
421+
match self.cur.clone().next() {
422+
Some((_, c)) => {
423+
match c.to_digit(10) {
424+
Some(i) => {
425+
cur = cur * 10 + i as usize;
426+
found = true;
427+
self.cur.next();
428+
}
429+
None => { break }
430+
}
431+
}
432+
None => { break }
427433
}
428434
}
429435
if found {
430-
Some(cur)
436+
return Some(cur);
431437
} else {
432-
None
438+
return None;
433439
}
434440
}
435441
}

branches/try/src/libstd/os/dragonfly/raw.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ pub struct stat {
6565
#[stable(feature = "raw_ext", since = "1.1.0")]
6666
pub st_flags: fflags_t,
6767
#[stable(feature = "raw_ext", since = "1.1.0")]
68-
pub st_gen: uint32_t,
68+
pub st_gen: u32,
6969
#[stable(feature = "raw_ext", since = "1.1.0")]
70-
pub st_lspare: int32_t,
70+
pub st_lspare: i32,
7171
#[stable(feature = "raw_ext", since = "1.1.0")]
72-
pub st_qspare1: int64_t,
72+
pub st_qspare1: i64,
7373
#[stable(feature = "raw_ext", since = "1.1.0")]
74-
pub st_qspare2: int64_t,
74+
pub st_qspare2: i64,
7575
}

0 commit comments

Comments
 (0)