Commit e438908b authored by Tom Niget's avatar Tom Niget

Fix stdlib build

parent cd62991f
...@@ -80,14 +80,14 @@ struct socket__oo : referencemodel::moduletype<socket__oo<>> { ...@@ -80,14 +80,14 @@ struct socket__oo : referencemodel::moduletype<socket__oo<>> {
co_await dot(self, close)(); co_await dot(self, close)();
system_error(errno, "listen()"); system_error(errno, "listen()");
} }
co_return {}; co_return None;
} }
} static constexpr listen{}; } static constexpr listen{};
struct : referencemodel::method { struct : referencemodel::method {
typon::Task<typon::TyNone> operator()(auto self) const { typon::Task<typon::TyNone> operator()(auto self) const {
co_await typon::io::close(self->fd); co_await typon::io::close(self->fd);
co_return {}; co_return None;
} }
} static constexpr close{}; } static constexpr close{};
...@@ -107,7 +107,7 @@ struct socket__oo : referencemodel::moduletype<socket__oo<>> { ...@@ -107,7 +107,7 @@ struct socket__oo : referencemodel::moduletype<socket__oo<>> {
co_await dot(self, close)(); co_await dot(self, close)();
system_error(-sbytes, "send()"); system_error(-sbytes, "send()");
} }
co_return {}; co_return None;
} }
} static constexpr send{}; } static constexpr send{};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment