Skip to content

Commit b0ad2ce

Browse files
committed
std::future -> core::future in generated code
1 parent 73ab40c commit b0ad2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capnpc/src/codegen.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ fn generate_node(
26242624
)));
26252625
server_interior.push(
26262626
Line(fmt!(ctx,
2627-
"fn {}(&self, _: {}Params<{}>, _: {}Results<{}>) -> impl ::std::future::Future<Output = Result<(), {capnp}::Error>> + '_ {{ async {{ Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }} }}",
2627+
"fn {}(&self, _: {}Params<{}>, _: {}Results<{}>) -> impl ::core::future::Future<Output = Result<(), {capnp}::Error>> + '_ {{ async {{ Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }} }}",
26282628
module_name(name),
26292629
capitalize_first_letter(name), params_ty_params,
26302630
capitalize_first_letter(name), results_ty_params,
@@ -2653,7 +2653,7 @@ fn generate_node(
26532653

26542654
server_interior.push(
26552655
Line(fmt!(ctx,
2656-
"fn {}(&self, _: {}Params<{}>) -> impl ::std::future::Future<Output = Result<(), {capnp}::Error>> + '_ {{ async {{ Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }} }}",
2656+
"fn {}(&self, _: {}Params<{}>) -> impl ::core::future::Future<Output = Result<(), {capnp}::Error>> + '_ {{ async {{ Err({capnp}::Error::unimplemented(\"method {}::Server::{} not implemented\".to_string())) }} }}",
26572657
module_name(name),
26582658
capitalize_first_letter(name), params_ty_params,
26592659
node_name, module_name(name)

0 commit comments

Comments
 (0)