Skip to content

Commit c64be0b

Browse files
committed
Merge pull request #1 from kagia/rust0.11
Fixes for rust nightly
2 parents 6712d06 + 7f617f3 commit c64be0b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
LIBNAME := $(shell rustc --crate-file-name argparse/mod.rs)
1+
LIBNAME := $(shell rustc --print-file-name argparse/mod.rs)
22

33

44
all: argparse-lib

argparse/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![crate_id = "argparse#0.1"]
1+
#![crate_name = "argparse"]
22
#![crate_type = "dylib"]
33

44
extern crate collections;

argparse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ impl<'parser> ArgumentParser<'parser> {
661661
fail!("Bad short argument {}", name);
662662
}
663663
self.short_options.insert(
664-
name[1] as char, opt.clone());
664+
name.as_bytes()[1] as char, opt.clone());
665665
}
666666
}
667667
}

0 commit comments

Comments
 (0)