From 67e0a16a62a8e49d95a08aca4402121c0607bb65 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Sat, 15 Nov 2014 00:33:00 -0500 Subject: [PATCH] fix conversion --- recipes/rust/rust.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index c8fc244..f4e3706 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -64,7 +64,7 @@ def as_json(list_): a += '"{}",'.format(e) else: raise Exception - if len(e): + if len(list_): a = a[:-1] a += ']' return a