~zethra/license

e55d1f86b38edf8228e21146de0f2611a2d24509 — Ben Aaron Goldberg a month ago 5758bf7
Formating and comment
1 files changed, 2 insertions(+), 0 deletions(-)

M license/src/data_sources/mod.rs
M license/src/data_sources/mod.rs => license/src/data_sources/mod.rs +2 -0
@@ 13,6 13,7 @@ use tera::Context;

/// Add data to Context
pub fn get_info(context: &mut Context, show_errs: bool) {
    // Use info from Cargo.toml
    match cargo::cargo_data(show_errs) {
        Ok(cargo_data) => {
            if cargo_data.project_name.is_none() {


@@ 41,6 42,7 @@ pub fn get_info(context: &mut Context, show_errs: bool) {
            }
        }
    }

    // Use git name and email as author
    if context.get("author").is_none() {
        let name = git::name();