diff --git a/include/ada/helpers.h b/include/ada/helpers.h index a555fa43c..91077e940 100644 --- a/include/ada/helpers.h +++ b/include/ada/helpers.h @@ -103,8 +103,8 @@ bool overlaps(std::string_view input1, const std::string& input2) noexcept; * included). The length of the substring is pos2 - pos1. */ ada_really_inline constexpr std::string_view substring(const std::string& input, - size_t pos1, - size_t pos2) noexcept { + size_t pos1, + size_t pos2) noexcept { #if ADA_DEVELOPMENT_CHECKS if (pos2 < pos1) { std::cerr << "Negative-length substring: [" << pos1 << " to " << pos2 << ")" diff --git a/include/ada/url_components-inl.h b/include/ada/url_components-inl.h index 8af91ff9f..77ab8874a 100644 --- a/include/ada/url_components-inl.h +++ b/include/ada/url_components-inl.h @@ -9,7 +9,8 @@ namespace ada { -[[nodiscard]] constexpr bool url_components::check_offset_consistency() const noexcept { +[[nodiscard]] constexpr bool url_components::check_offset_consistency() + const noexcept { /** * https://user:pass@example.com:1234/foo/bar?baz#quux * | | | | ^^^^| | |