Skip to content

Commit ab6a6a5

Browse files
committed
---
yaml --- r: 127190 b: refs/heads/snap-stage3 c: 96d1712 h: refs/heads/master v: v3
1 parent aad6017 commit ab6a6a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
4+
refs/heads/snap-stage3: 96d1712511400be7956e0902e0b4bb32ad7ee34d
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libgetopts/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl Matches {
372372
}
373373

374374
fn is_arg(arg: &str) -> bool {
375-
arg.len() > 1 && arg.as_bytes()[0] == '-' as u8
375+
arg.len() > 1 && arg.as_bytes()[0] == b'-'
376376
}
377377

378378
fn find_opt(opts: &[Opt], nm: Name) -> Option<uint> {
@@ -555,7 +555,7 @@ pub fn getopts(args: &[String], optgrps: &[OptGroup]) -> Result {
555555
} else {
556556
let mut names;
557557
let mut i_arg = None;
558-
if cur.as_bytes()[1] == '-' as u8 {
558+
if cur.as_bytes()[1] == b'-' {
559559
let tail = cur.as_slice().slice(2, curlen);
560560
let tail_eq: Vec<&str> = tail.split('=').collect();
561561
if tail_eq.len() <= 1 {

0 commit comments

Comments
 (0)