From 887a8d1f0a5f5f88d275b68eb92b15e4d4eccfc7 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 9 Feb 2016 08:27:43 +0100 Subject: Annotate hash with {.noSideEffect.} --- lib/pure/json.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/json.nim b/lib/pure/json.nim index b53bc3f02..3565e2feb 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -761,7 +761,7 @@ proc `==`* (a,b: JsonNode): bool = of JObject: a.fields == b.fields -proc hash*(n: Table[string, JsonNode]): Hash +proc hash*(n: Table[string, JsonNode]): Hash {.noSideEffect.} proc hash*(n: JsonNode): Hash = ## Compute the hash for a JSON node -- cgit 1.4.1-2-gfad0