diff --git a/capnpc/src/codegen.rs b/capnpc/src/codegen.rs index a924c5a1f..2aac6e8a5 100644 --- a/capnpc/src/codegen.rs +++ b/capnpc/src/codegen.rs @@ -1937,7 +1937,7 @@ fn generate_node( ))), Indent(Box::new(Branch(vec![ Line( - "fn try_from(value: u16) -> ::core::result::Result {" + "fn try_from(value: u16) -> ::core::result::Result>::Error> {" .to_string(), ), Indent(Box::new(Branch(vec![