Skip to content

Commit bcf361a

Browse files
committed
Use trailing return type
1 parent bcdde1a commit bcf361a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/skyr/v2/core/url_parser_context.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,11 @@ class url_parser_context {
205205
input_it -= (buffer.size() + 1);
206206
}
207207

208-
std::string_view still_to_process() const noexcept {
208+
[[nodiscard]] auto still_to_process() const noexcept -> std::string_view {
209209
return input.substr(std::distance(std::begin(input), input_it));
210210
}
211211

212-
bool remaining_starts_with(std::string_view chars) const noexcept {
212+
[[nodiscard]] auto remaining_starts_with(std::string_view chars) const noexcept -> bool {
213213
return !still_to_process().empty() && still_to_process().substr(1).starts_with(chars);
214214
}
215215

0 commit comments

Comments
 (0)