Skip to content

Commit 121b91f

Browse files
authored
Fixing NOLINT mishap (#3260)
* Removing NOLINT pointed out by Aaron. * Removing another NOLINT.
1 parent ae07d4c commit 121b91f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/pybind11/cast.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,7 +1200,6 @@ class argument_loader {
12001200
}
12011201

12021202
template <typename Return, typename Guard, typename Func>
1203-
// NOLINTNEXTLINE(readability-const-return-type)
12041203
enable_if_t<std::is_void<Return>::value, void_type> call(Func &&f) && {
12051204
std::move(*this).template call_impl<remove_cv_t<Return>>(std::forward<Func>(f), indices{}, Guard{});
12061205
return void_type();
@@ -1224,7 +1223,6 @@ class argument_loader {
12241223
}
12251224

12261225
template <typename Return, typename Func, size_t... Is, typename Guard>
1227-
// NOLINTNEXTLINE(readability-const-return-type)
12281226
Return call_impl(Func &&f, index_sequence<Is...>, Guard &&) && {
12291227
return std::forward<Func>(f)(cast_op<Args>(std::move(std::get<Is>(argcasters)))...);
12301228
}

0 commit comments

Comments
 (0)