From eaa888304c3714a53df45cf8a88d513c17c4c58f Mon Sep 17 00:00:00 2001 From: Andrew Pyle Date: Fri, 3 Oct 2025 11:42:47 -0500 Subject: [PATCH] Add `()` to address compilation warning. "warning: using map.field notation (without parentheses) to invoke function Agents.module_info() is deprecated, you must add parentheses instead: remote.function()" --- lib/runner.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runner.ex b/lib/runner.ex index 32c25d08..a3b4dccf 100644 --- a/lib/runner.ex +++ b/lib/runner.ex @@ -13,7 +13,7 @@ defmodule Runner do {:ok, modules} = :application.get_key(:elixir_koans, :modules) modules - |> Stream.map(&(&1.module_info |> get_in([:compile, :source]))) + |> Stream.map(&(&1.module_info() |> get_in([:compile, :source]))) # Paths are charlists |> Stream.map(&to_string/1) |> Stream.zip(modules)