From 625b89fbb33e71e41ba39086ea7f65cd22bf1a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Tue, 12 Nov 2024 15:28:05 +0100 Subject: [PATCH] mix format --- examples/db_agent/lib/db_agent.ex | 2 +- examples/db_agent/mix.exs | 14 ++++++++------ examples/tcp_connection/mix.exs | 14 ++++++++------ 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/examples/db_agent/lib/db_agent.ex b/examples/db_agent/lib/db_agent.ex index 46f00127..d5bf55d9 100644 --- a/examples/db_agent/lib/db_agent.ex +++ b/examples/db_agent/lib/db_agent.ex @@ -5,7 +5,7 @@ defmodule DBAgent do defstruct [:query] end - @spec start_link((() -> state :: any), Keyword.t()) :: GenServer.on_start() + @spec start_link((-> state :: any), Keyword.t()) :: GenServer.on_start() def start_link(fun, opts \\ []) when is_function(fun, 0) do opts = [init: fun, backoff: nil] ++ opts DBConnection.start_link(__MODULE__, opts) diff --git a/examples/db_agent/mix.exs b/examples/db_agent/mix.exs index 2ed90231..73e53a5f 100644 --- a/examples/db_agent/mix.exs +++ b/examples/db_agent/mix.exs @@ -2,12 +2,14 @@ defmodule DbAgent.Mixfile do use Mix.Project def project do - [app: :db_agent, - version: "0.0.1", - elixir: "~> 1.4", - build_embedded: Mix.env == :prod, - start_permanent: Mix.env == :prod, - deps: deps()] + [ + app: :db_agent, + version: "0.0.1", + elixir: "~> 1.4", + build_embedded: Mix.env() == :prod, + start_permanent: Mix.env() == :prod, + deps: deps() + ] end def application do diff --git a/examples/tcp_connection/mix.exs b/examples/tcp_connection/mix.exs index fede96cf..eb9afad4 100644 --- a/examples/tcp_connection/mix.exs +++ b/examples/tcp_connection/mix.exs @@ -2,12 +2,14 @@ defmodule TcpConnection.Mixfile do use Mix.Project def project do - [app: :tcp_connection, - version: "0.0.1", - elixir: "~> 1.4", - build_embedded: Mix.env == :prod, - start_permanent: Mix.env == :prod, - deps: deps()] + [ + app: :tcp_connection, + version: "0.0.1", + elixir: "~> 1.4", + build_embedded: Mix.env() == :prod, + start_permanent: Mix.env() == :prod, + deps: deps() + ] end def application do