Commit Diff


commit - eb075e3595bdbd8711b07cef09392bdc4c036611
commit + 6376d1c8b49bf911409252eb50d8d2e031e02201
blob - bb0982e892ec7675271a740e854003530de200c5
blob + 07c8b54408a730591c0818eb66b432f65aa2d35d
--- src/metrics.rs
+++ src/metrics.rs
@@ -153,8 +153,8 @@ impl<'w, W: Write, I: Iterator<Item = ServiceDir>> Ite
             self.iter
                 .next()
                 .map(|service_dir| {
-                    let unescaped = service_dir.name().to_string_lossy();
-                    let service = escape(&unescaped);
+                    let unescaped = service_dir.name().to_str().unwrap();
+                    let service = escape(unescaped);
                     let status = service_dir.status()?;
                     if self.first {
                         self.first = false;