Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 2a9530c

Browse files
committed
Remove ~str pattern (obsolete).
1 parent a2fe5eb commit 2a9530c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/codegen/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ fn main() {
2121
3 => {
2222
let output_dir = Path::new(args[2].as_slice());
2323

24-
match args[1] {
25-
~"read_method.rs" => read_method::generate(&output_dir).unwrap(),
26-
~"status.rs" => status::generate(&output_dir).unwrap(),
24+
match args[1].as_slice() {
25+
"read_method.rs" => read_method::generate(&output_dir).unwrap(),
26+
"status.rs" => status::generate(&output_dir).unwrap(),
2727
s => {
2828
println!("unknown thing-to-generate '{}'", s);
2929
os::set_exit_status(1);

0 commit comments

Comments
 (0)