File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ NB_MODULE(units_llnl_ext, mod)
563563 std::stringstream ss;
564564 ss.precision (12 );
565565 ss << measurement.value ();
566- result= ss.str ();
566+ result = ss.str ();
567567 } else if (fmt_string.front () == ' -' ) {
568568 auto target_unit =
569569 units::unit_from_string (fmt_string.substr (1 ));
@@ -581,7 +581,7 @@ NB_MODULE(units_llnl_ext, mod)
581581 std::stringstream ss;
582582 ss.precision (12 );
583583 ss << new_value;
584- result= ss.str ();
584+ result = ss.str ();
585585 } else {
586586 auto target_unit = units::unit_from_string (fmt_string);
587587 if (!units::is_valid (target_unit)) {
@@ -746,9 +746,7 @@ NB_MODULE(units_llnl_ext, mod)
746746 nb::is_operator ())
747747 .def (
748748 " __invert__" ,
749- [](const Dimension& dim) {
750- return Dimension{dim.base .inv ()};
751- })
749+ [](const Dimension& dim) { return Dimension{dim.base .inv ()}; })
752750 .def (
753751 " __pow__" ,
754752 [](const Dimension& dim, int power) {
You can’t perform that action at this time.
0 commit comments