From 1a8c5c0e49c93ed589aa08533ecec135a2b11e99 Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Sat, 8 Jul 2023 06:32:32 +0400 Subject: [PATCH] mix format --- deps/rabbitmq_cli/lib/rabbitmqctl.ex | 2 +- .../ctl/deactivate_disk_free_space_monitoring_command_test.exs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/rabbitmq_cli/lib/rabbitmqctl.ex b/deps/rabbitmq_cli/lib/rabbitmqctl.ex index 9e8f03c8d3..e35d8a5c0f 100644 --- a/deps/rabbitmq_cli/lib/rabbitmqctl.ex +++ b/deps/rabbitmq_cli/lib/rabbitmqctl.ex @@ -628,7 +628,7 @@ defmodule RabbitMQCtl do ## {:fun, fun} - run a custom function to enable distribution. ## custom mode is usefult for commands which should have specific node name. ## Runs code if distribution is successful, or not needed. - @spec maybe_with_distribution(module(), options(), (-> command_result())) :: command_result() + @spec maybe_with_distribution(module(), options(), (() -> command_result())) :: command_result() defp maybe_with_distribution(command, options, code) do try do maybe_with_distribution_without_catch(command, options, code) diff --git a/deps/rabbitmq_cli/test/ctl/deactivate_disk_free_space_monitoring_command_test.exs b/deps/rabbitmq_cli/test/ctl/deactivate_disk_free_space_monitoring_command_test.exs index 6e9b5e06e2..0e3fc7622b 100644 --- a/deps/rabbitmq_cli/test/ctl/deactivate_disk_free_space_monitoring_command_test.exs +++ b/deps/rabbitmq_cli/test/ctl/deactivate_disk_free_space_monitoring_command_test.exs @@ -34,6 +34,7 @@ defmodule DeactivateDiskFreeSpaceMonitoringCommandTest do end test "banner", context do - assert @command.banner([], context[:opts]) =~ ~r/Deactivating free disk space monitoring on node/ + assert @command.banner([], context[:opts]) =~ + ~r/Deactivating free disk space monitoring on node/ end end