 
     all_modules = MapSet.new(module_sources, &elem(&1, 0))
 
-    Map.new module_sources, fn {module, source} ->
+    Map.new(module_sources, fn {module, source} ->
       source(runtime_references: runtime, compile_references: compile, source: file) = source
+
       compile_references =
         compile
         |> MapSet.new()
         |> MapSet.delete(module)
         |> MapSet.intersection(all_modules)
-        |> Enum.filter(&module_sources[&1] != source)
+        |> Enum.filter(&(module_sources[&1] != source))
         |> Enum.map(&{source(module_sources[&1], :source), "(compile)"})
 
       runtime_references =


  defp warnings(file, entries) do
    prefix = IO.ANSI.format([:yellow, "warning: "])
    warnings =
      Enum.map(Enum.sort(entries), fn entry ->
        message = message(entry)

    case args do
      ["warnings"] ->
        warnings()

      ["unreachable"] ->
        unreachable()

      ["callers", callee] ->
        callers(callee)

      ["graph"] ->
        graph(opts)

      _ ->
        Mix.raise("xref doesn't support this command. For more information run \"mix help xref\"")
    end
  end

