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