Skip to content

Commit

Permalink
(test) fix typo on test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Dec 27, 2020
1 parent 483e51a commit f82678f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/registry.rs
Expand Up @@ -732,9 +732,9 @@ mod test {

let mut dir_path = dir
.path()
.to_string_loosy()
.replace(path::MAIN_SEPARATOR, "/");
if !dir_path.end_with("/") {
.to_string_lossy()
.replace(std::path::MAIN_SEPARATOR, "/");
if !dir_path.ends_with("/") {
dir_path.push('/');
}
r.register_templates_directory(".hbs", dir_path).unwrap();
Expand Down

0 comments on commit f82678f

Please sign in to comment.