Skip to content

Commit 8876b37

Browse files
CopilotDennisOSRM
andcommitted
Fix code formatting as reported by CI
Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
1 parent 43f976f commit 8876b37

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

include/updater/csv_file_parser.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,8 @@ template <typename Key, typename Value> struct CSVFilesParser
131131
}
132132
catch (const boost::exception &e)
133133
{
134-
const auto message = osrm::util::compat::format("exception in loading {}:\n {}",
135-
filename,
136-
boost::diagnostic_information(e));
134+
const auto message = osrm::util::compat::format(
135+
"exception in loading {}:\n {}", filename, boost::diagnostic_information(e));
137136
throw util::exception(message + SOURCE_REF);
138137
}
139138
}

include/util/mmap_file.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ util::vector_view<T> mmapFile(const std::filesystem::path &file, MmapContainerT
2929
}
3030
catch (const std::exception &exc)
3131
{
32-
throw exception(osrm::util::compat::format("File {} mapping failed: {}", file.string(),
33-
exc.what()) +
34-
SOURCE_REF);
32+
throw exception(
33+
osrm::util::compat::format("File {} mapping failed: {}", file.string(), exc.what()) +
34+
SOURCE_REF);
3535
}
3636
}
3737

@@ -55,9 +55,9 @@ mmapFile(const std::filesystem::path &file, MmapContainerT &mmap_container, cons
5555
}
5656
catch (const std::exception &exc)
5757
{
58-
throw exception(osrm::util::compat::format("File {} mapping failed: {}", file.string(),
59-
exc.what()) +
60-
SOURCE_REF);
58+
throw exception(
59+
osrm::util::compat::format("File {} mapping failed: {}", file.string(), exc.what()) +
60+
SOURCE_REF);
6161
}
6262
}
6363
} // namespace detail

src/server/service/table_service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include "server/api/parameters_parser.hpp"
44
#include "engine/api/table_parameters.hpp"
55

6-
#include "util/json_container.hpp"
76
#include "util/format.hpp"
7+
#include "util/json_container.hpp"
88

99
namespace osrm::server::service
1010
{

0 commit comments

Comments
 (0)