From cb36e39c2a843ec6797faf2d86b94015d84dde77 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 6 Oct 2023 13:39:51 -0600 Subject: [PATCH] style: formatting fixed to make pre-commit happy --- src/core/include/mp-units/quantity_spec.h | 5 +---- .../isq/include/mp-units/systems/isq/space_and_time.h | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/include/mp-units/quantity_spec.h b/src/core/include/mp-units/quantity_spec.h index d2e295013..2adafe91a 100644 --- a/src/core/include/mp-units/quantity_spec.h +++ b/src/core/include/mp-units/quantity_spec.h @@ -527,10 +527,7 @@ template return is_same_v>; } -[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q) -{ - return dimensionless / q; -} +[[nodiscard]] consteval QuantitySpec auto inverse(QuantitySpec auto q) { return dimensionless / q; } /** diff --git a/src/systems/isq/include/mp-units/systems/isq/space_and_time.h b/src/systems/isq/include/mp-units/systems/isq/space_and_time.h index e93f152cb..c60be5fd7 100644 --- a/src/systems/isq/include/mp-units/systems/isq/space_and_time.h +++ b/src/systems/isq/include/mp-units/systems/isq/space_and_time.h @@ -80,6 +80,6 @@ QUANTITY_SPEC(attenuation, inverse(distance)); inline constexpr auto extinction = attenuation; QUANTITY_SPEC(phase_coefficient, phase_angle / path_length); QUANTITY_SPEC(propagation_coefficient, inverse(length)); // γ = α + iβ where α denotes attenuation - // and β the phase coefficient of a plane wave + // and β the phase coefficient of a plane wave } // namespace mp_units::isq