diff --git a/src/main.rs b/src/main.rs index 0603aef..3222223 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,8 +13,8 @@ use std::{ }; use tera::{Context, Error as TeraError, Tera}; -const DEFAULT_TEMPLATE_DIR: &'static str = "templates"; -const DEFAULT_OUTPUT_DIR: &'static str = "output"; +const DEFAULT_TEMPLATE_DIR: &str = "templates"; +const DEFAULT_OUTPUT_DIR: &str = "output"; fn main() -> Result<(), Box> { process::exit(match run() { @@ -43,7 +43,7 @@ fn run() -> Result<(), Box> { let outputs: Vec = matches .values_of("output-format") .unwrap_or_default() - .map(|e| String::from(e)) + .map(String::from) .collect(); if matches.is_present("watch") { @@ -76,7 +76,7 @@ fn watch_mode<'a>( engine: &mut Tera, context: &mut Context, dir: &str, - outputs: &Vec, + outputs: &[String], template_dir: &'a str, ) -> Result<(), Box> { let (tx, rx) = unbounded(); @@ -101,7 +101,7 @@ fn output<'a>( engine: &Tera, context: &Context, dir: &str, - outputs: &Vec, + outputs: &[String], template_dir: &'a str, ) -> Result<(), Box> { if outputs.contains(&String::from("all")) { diff --git a/templates/latex b/templates/latex index 42ae5a1..3ad1ace 100644 --- a/templates/latex +++ b/templates/latex @@ -88,7 +88,7 @@ {% raw %} & \widel{\large\title{% {% endraw %} -{{ experience.title }}}\hint{ {{experience.company }} }} & {{ experience.start }}---{{ experience.end }}\\ +{{ experience.title }}}\hint{ {{experience.company }} }} & {{ experience.start }}---{{ experience.end }} \\ & \widel{\footnotesize {{ experience.location }}} \\ {% for note in experience.notes -%} & \bullet