From f6b97b04c3416a9d11742249a373f3a94c7465f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 4 Jul 2019 23:05:34 +0200 Subject: [PATCH] Make GenericPath.parentPath pure. --- source/vibe/core/path.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/core/path.d b/source/vibe/core/path.d index 43e91ab..312fd0c 100644 --- a/source/vibe/core/path.d +++ b/source/vibe/core/path.d @@ -478,7 +478,7 @@ struct GenericPath(F) { GenericPath parentPath() const @nogc { auto b = Format.getBackNode(m_path); - static const Exception e = new Exception("Path has no parent path"); + static immutable Exception e = new Exception("Path has no parent path"); if (b.length >= m_path.length) throw e; return GenericPath.fromTrustedString(m_path[0 .. $ - b.length]); }