Skip to content

Commit c10bfec

Browse files
committed
Merge pull request #114 from marcusklaas/rustup
Rustup
2 parents 3bb144c + 5924b83 commit c10bfec

File tree

3 files changed

+35
-34
lines changed

3 files changed

+35
-34
lines changed

Cargo.lock

Lines changed: 33 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bin/rustfmt.rs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![cfg(not(test))]
12-
#![feature(exit_status)]
1312

1413
extern crate rustfmt;
1514

@@ -24,28 +23,7 @@ fn main() {
2423
let mut def_config = String::new();
2524
def_config_file.read_to_string(&mut def_config).unwrap();
2625

27-
//run(args, WriteMode::Display, &def_config);
2826
run(args, WriteMode::Overwrite, &def_config);
2927

30-
std::env::set_exit_status(0);
31-
32-
// TODO unit tests
33-
// let fmt = ListFormatting {
34-
// tactic: ListTactic::Horizontal,
35-
// separator: ",",
36-
// trailing_separator: SeparatorTactic::Vertical,
37-
// indent: 2,
38-
// h_width: 80,
39-
// v_width: 100,
40-
// };
41-
// let inputs = vec![(format!("foo"), String::new()),
42-
// (format!("foo"), String::new()),
43-
// (format!("foo"), String::new()),
44-
// (format!("foo"), String::new()),
45-
// (format!("foo"), String::new()),
46-
// (format!("foo"), String::new()),
47-
// (format!("foo"), String::new()),
48-
// (format!("foo"), String::new())];
49-
// let s = write_list(&inputs, &fmt);
50-
// println!(" {}", s);
28+
std::process::exit(0);
5129
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#![feature(rustc_private)]
12-
#![feature(collections)]
12+
#![feature(str_escape)]
1313
#![feature(str_char)]
1414

1515
// TODO we're going to allocate a whole bunch of temp Strings, is it worth

0 commit comments

Comments
 (0)