Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Sep 18, 2024
1 parent 91e7e7e commit 22c3665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/ada/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 << ")"
Expand Down
3 changes: 2 additions & 1 deletion include/ada/url_components-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]:1234/foo/bar?baz#quux
* | | | | ^^^^| | |
Expand Down

0 comments on commit 22c3665

Please sign in to comment.