File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
branches/snap-stage3/src/libgetopts Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: efdb77b8d44fe2d5041ae3a5a8e0c7ef53715438
4
+ refs/heads/snap-stage3: 96d1712511400be7956e0902e0b4bb32ad7ee34d
5
5
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ impl Matches {
372
372
}
373
373
374
374
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 '-'
376
376
}
377
377
378
378
fn find_opt ( opts : & [ Opt ] , nm : Name ) -> Option < uint > {
@@ -555,7 +555,7 @@ pub fn getopts(args: &[String], optgrps: &[OptGroup]) -> Result {
555
555
} else {
556
556
let mut names;
557
557
let mut i_arg = None ;
558
- if cur. as_bytes ( ) [ 1 ] == '-' as u8 {
558
+ if cur. as_bytes ( ) [ 1 ] == b '-' {
559
559
let tail = cur. as_slice ( ) . slice ( 2 , curlen) ;
560
560
let tail_eq: Vec < & str > = tail. split ( '=' ) . collect ( ) ;
561
561
if tail_eq. len ( ) <= 1 {
You can’t perform that action at this time.
0 commit comments