fix two trivial warnings

This commit is contained in:
Vincent Breitmoser 2020-01-29 10:54:24 +01:00
parent 2f6068118f
commit 9d9efd68d3
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ use crate::Result;
use crate::i18n::I18NHelper;
#[derive(Debug)]
pub struct TemplateOverrides(String, HashSet<(String)>);
pub struct TemplateOverrides(String, HashSet<String>);
impl TemplateOverrides {
pub fn load(template_path: &Path, localized_dir: &str) -> Result<Self> {
@ -28,7 +28,7 @@ impl TemplateOverrides {
}
}
fn load_localized_template_names(template_path: &Path, localized_dir: &str) -> Result<HashSet<(String)>> {
fn load_localized_template_names(template_path: &Path, localized_dir: &str) -> Result<HashSet<String>> {
let language_glob = template_path.join(localized_dir).join("*");
glob::glob(language_glob.to_str().expect("valid glob path string"))
.unwrap()