Mercurial > hg > Members > anatofuz > ie-virsh
changeset 30:f4b655fae2a3
...
author | AnaTofuZ <anatofuz@gmail.com> |
---|---|
date | Sat, 21 Nov 2020 16:51:11 +0900 |
parents | 0b43942c8950 |
children | 26111ba2fea1 |
files | src/command.rs |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/command.rs Sat Nov 21 16:46:21 2020 +0900 +++ b/src/command.rs Sat Nov 21 16:51:11 2020 +0900 @@ -19,15 +19,13 @@ pub fn templates() -> io::Result<()> { let mut entries = fs::read_dir(TEMPLATE_DIR)? - .map(|res| res.map(|e| e.path())) + .map(|res| res.map(|e| e.path().display().to_string())) .collect::<Result<Vec<_>, io::Error>>()?; entries.sort(); for entry in entries { let template_vm = entry - .display() - .to_string() .replace(TEMPLATE_DIR, "") .replace(TEMPLATE_SUFFIX, "") .replace(TEMPLATE_FILE_EXTENSION, "");