fix compile errs
This commit is contained in:
@@ -32,8 +32,6 @@ fn replace_links(input: &str) -> String {
|
||||
intermediate.replace("]", "** ")
|
||||
}
|
||||
|
||||
fn add_github_link(input: &str, name: &str, file: &DirEntry) -> String {}
|
||||
|
||||
fn render(input: &str) -> String {
|
||||
let mut skin = MadSkin::default();
|
||||
skin.set_headers_fg(rgb(255, 187, 0));
|
||||
@@ -74,7 +72,7 @@ fn copy_readme(file: &DirEntry, readme_dir: PathBuf, url: &str) {
|
||||
|
||||
let _ = std::fs::copy(file.path(), &readme_path);
|
||||
let mut readme_file = fs::File::options().append(true).open(readme_path).unwrap();
|
||||
writeln!(readme_file, "\n[{} Github]({})", file_name, url);
|
||||
let _ = writeln!(readme_file, "\n[{} Github]({})", file_name, url);
|
||||
}
|
||||
|
||||
fn get_file_name(file: &DirEntry) -> String {
|
||||
|
||||
Reference in New Issue
Block a user