From aa23281ef4024b20b41d71cf8208e1a410a4d3bb Mon Sep 17 00:00:00 2001 From: Chris McCord Date: Wed, 23 Aug 2023 16:42:30 -0400 Subject: [PATCH] Update lib/phoenix_live_view/async_result.ex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: José Valim --- lib/phoenix_live_view/async_result.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_live_view/async_result.ex b/lib/phoenix_live_view/async_result.ex index 0f27445081..b9669613da 100644 --- a/lib/phoenix_live_view/async_result.ex +++ b/lib/phoenix_live_view/async_result.ex @@ -81,7 +81,7 @@ defmodule Phoenix.LiveView.AsyncResult do alias Phoenix.LiveView.AsyncResult def count(%AsyncResult{result: result, ok?: true}), - do: Enum.count(result) + do: Enumerable.count(result) def count(%AsyncResult{}), do: 0