From ffcc455ed589532e3d02f30719ea2f3f7a31638a Mon Sep 17 00:00:00 2001 From: Unreal Hoang Date: Sun, 3 Jun 2018 03:25:28 +0900 Subject: [PATCH] Fix panicking handling file without extension --- src/cmd/serve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index db50a050..3af83d30 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -283,7 +283,7 @@ fn is_temp_file(path: &Path) -> bool { } }, None => { - path.ends_with(".DS_STORE") + true }, } }