Remove copy_book_toml method in favor for copy_recursive

This commit is contained in:
Bastian Gruber 2019-04-06 12:00:43 +02:00
parent 1c3979ca16
commit 5ddb339c9d

View File

@ -116,11 +116,6 @@ fn copy_recursive(path: &Path, to: &Path) {
}
}
fn copy_book_toml(path: &Path) {
let mut file = t!(File::create(&path.join("book.toml")));
t!(file.write_fmt(format_args!(include_str!("book.toml"));
}
fn main() {
let src_path_str = env::args_os().skip(1).next().expect("source path required");
let dest_path_str = env::args_os().skip(2).next().expect("destination path required");
@ -146,6 +141,4 @@ fn main() {
copy_recursive(&doc_src_path, &dest_path);
generate_summary(&dest_path, &lang_features, &lib_features);
copy_book_toml(&dest_path);
}