Explorar el Código

Use single char pattern for better performance

Victor Song hace 3 años
padre
commit
d24ca084a3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/output/table.rs

+ 1 - 1
src/output/table.rs

@@ -347,7 +347,7 @@ fn determine_time_zone() -> TZResult<TimeZone> {
             } else {
                 format!("/usr/share/zoneinfo/{}", {
                     if file.starts_with(':') {
-                        file.replacen(":", "", 1)
+                        file.replacen(':', "", 1)
                     } else {
                         file
                     }