Skip to content

Commit

Permalink
style: formatting fixed to make pre-commit happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Apr 18, 2024
1 parent 86743d6 commit 4ee7fb3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions example/glide_computer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ void print(const R& gliders)
std::cout << "- Polar:\n";
for (const auto& p : g.polar) {
const auto ratio = glide_ratio(g.polar[0]).force_in(one);
std::cout << MP_UNITS_STD_FMT::format(" * {::N[.4]} @ {::N[.1]} -> {::N[.1]} ({::N[.1]})\n",
p.climb, p.v, ratio,
std::cout << MP_UNITS_STD_FMT::format(" * {::N[.4]} @ {::N[.1]} -> {::N[.1]} ({::N[.1]})\n", p.climb, p.v, ratio,
// TODO is it possible to make ADL work below (we need another set of trig
// functions for strong angle in a different namespace)
si::asin(1 / ratio).force_in(si::degree));
Expand Down Expand Up @@ -135,8 +134,7 @@ void print(const task& t)
std::cout << "- Legs: "
<< "\n";
for (const auto& l : t.get_legs())
std::cout << MP_UNITS_STD_FMT::format(" * {} -> {} ({::N[.1]})\n", l.begin().name, l.end().name,
l.get_distance());
std::cout << MP_UNITS_STD_FMT::format(" * {} -> {} ({::N[.1]})\n", l.begin().name, l.end().name, l.get_distance());
std::cout << "\n";
}

Expand Down

0 comments on commit 4ee7fb3

Please sign in to comment.