Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion capnpc/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2653,7 +2653,7 @@ fn generate_node(

server_interior.push(
Line(fmt!(ctx,
"fn {}(self: {capnp}::capability::Rc<Self>, _: {}Params<{}>) -> impl ::core::future::Future<Output = Result<(), {capnp}::Error>> + 'static {{ async {{ Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }} }}",
"fn {}(self: {capnp}::capability::Rc<Self>, _: {}Params<{}>) -> impl ::core::future::Future<Output = Result<(), {capnp}::Error>> + 'static {{ ::core::future::ready(Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string()))) }}",
module_name(name),
capitalize_first_letter(name), params_ty_params,
node_name, module_name(name)
Expand Down
4 changes: 4 additions & 0 deletions capnpc/test/test.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -861,3 +861,7 @@ struct Issue260(T, Q) {
val2 @3 :Int8;
}
}

interface TestStream {
send @0 (data : Data) -> stream;
}
Loading