Skip to content

Commit cc36dd9

Browse files
committed
style: Fix typespec formatting in ecto_libsql.ex
Apply Elixir formatter rules to multi-line typespecs for disconnect/2 and handle_execute/4 functions.
1 parent f91a36f commit cc36dd9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lib/ecto_libsql.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ defmodule EctoLibSql do
126126
127127
Removes the connection from the Rust connection registry and cleans up any resources.
128128
"""
129-
@spec disconnect(Keyword.t(), EctoLibSql.State.t()) :: :ok | {:error, term(), EctoLibSql.State.t()}
129+
@spec disconnect(Keyword.t(), EctoLibSql.State.t()) ::
130+
:ok | {:error, term(), EctoLibSql.State.t()}
130131
def disconnect(_opts, %EctoLibSql.State{conn_id: conn_id} = state) do
131132
EctoLibSql.Native.close_conn(conn_id, :conn_id, state)
132133
end
@@ -136,7 +137,12 @@ defmodule EctoLibSql do
136137
Executes an SQL query, delegating to transactional or non-transactional logic
137138
depending on the connection state.
138139
"""
139-
@spec handle_execute(EctoLibSql.Query.t() | String.t(), list(), Keyword.t(), EctoLibSql.State.t()) ::
140+
@spec handle_execute(
141+
EctoLibSql.Query.t() | String.t(),
142+
list(),
143+
Keyword.t(),
144+
EctoLibSql.State.t()
145+
) ::
140146
{:ok, EctoLibSql.Query.t(), EctoLibSql.Result.t(), EctoLibSql.State.t()}
141147
| {:error, EctoLibSql.Error.t(), EctoLibSql.State.t()}
142148
def handle_execute(query, args, _opts, %EctoLibSql.State{trx_id: trx_id} = state) do

0 commit comments

Comments
 (0)