     new_rx_framing_timeout
       = Keyword.get(opts, :rx_framing_timeout, state.rx_framing_timeout)
     is_active = Keyword.get(opts, :active, state.is_active)
-    state = %{state | rx_framing_timeout: new_rx_framing_timeout, is_active: is_active}
-     |> change_framing(new_framing)
+    state = change_framing(
+      %{state | rx_framing_timeout: new_rx_framing_timeout, is_active: is_active},
+      new_framing
+    )
 
     response = call_port(state, :configure, opts)
     {:reply, response, state}

    # Block until the response comes back since the C side
    # doesn't want to handle any queuing of requests. REVISIT
    receive do
      {_, {:data, <<?r,response::binary>>}} ->
        :erlang.binary_to_term(response)
    after
      timeout ->

    response = call_port(state, :close, nil)

    # Clean up the Elixir side
    new_state = handle_framing_timer(
      %{state | name: nil, framing_state: nil, queued_messages: []},
      :ok
    )

    {:reply, response, new_state}
  end
