/// Generates Rust specific files for the project: deny.toml (for cargo deny) and
/// rustfmt.toml for specific cargo fmt settings.
Generates Rust specific files for the project: deny.toml (for cargo deny) and
rustfmt.toml for specific cargo fmt settings.
Generates Rust specific files for the project : deny . toml ( for cargo deny ) and rustfmt . toml for specific cargo fmt settings .
fn generate_rust_specific_files(&self) -> Result<()> {
        let cargo_deny = get_template_path("deny")
            .with_context(|| format!("Template `{}.txt` does not exist.", "deny"))?;
        let rust_fmt = get_template_path("rustfmt")
            .with_context(|| format!("Template `{}.txt` does not exist.", "rustfmt"))?;
        let mut cargo_deny_file = create_file("deny.toml")?;
        let mut rust_fmt_file = create_file("rustfmt.toml")?;
        cargo_deny_file.write_all(read_to_string(cargo_deny)?.as_bytes())?;
        rust_fmt_file.write_all(read_to_string(rust_fmt)?.as_bytes())?;
        Ok(())
    }
fn generate_rust_specific_files ( & self ) -> Result < ( ) > { let cargo_deny = get_template_path ( " " ) . with_context ( | | format ! ( " " " " ) ) ? ; let rust_fmt = get_template_path ( " " ) . with_context ( | | format ! ( " " " " ) ) ? ; let mut cargo_deny_file = create_file ( " " ) ? ; let mut rust_fmt_file = create_file ( " " ) ? ; cargo_deny_file . write_all ( read_to_string ( cargo_deny ) ? . as_bytes ( ) ) ? ; rust_fmt_file . write_all ( read_to_string ( rust_fmt ) ? . as_bytes ( ) ) ? ; Ok ( ( ) ) }
Generates Rust specific files for the project: deny.toml (for cargo deny) and
rustfmt.toml for specific cargo fmt settings.
Generates Rust specific files for the project : deny . toml ( for cargo deny ) and rustfmt . toml for specific cargo fmt settings .
&self