Skip to content

Commit 1e9d162

Browse files
committed
fix init and format error
1 parent e5e89c5 commit 1e9d162

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/intro-5-consumer.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
#include <cinttypes>
1111

1212
#if __cpp_lib_expected < 202202L
13-
int main() {
14-
std::cout << "this example needs a working std::expected\n";
15-
}
13+
int main() { std::cout << "this example needs a working std::expected\n"; }
1614
#else
1715
namespace ex = ::beman::execution;
1816
using namespace std::string_literals;

tests/beman/execution/exec-opstate-start.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct non_opstate {
2121
template <bool Noexcept>
2222
struct opstate {
2323
receiver rcvr;
24-
auto start() const noexcept(Noexcept) -> void { test_std::set_value(receiver(this->rcvr.value), 42); }
24+
auto start() const noexcept(Noexcept) -> void { test_std::set_value(receiver{this->rcvr.value}, 42); }
2525
};
2626

2727
template <typename State>

0 commit comments

Comments
 (0)