From 790dcdc46e4f1e30792cef122ff637192f568402 Mon Sep 17 00:00:00 2001 From: Minghang Chen Date: Mon, 30 Jan 2023 11:21:33 -0800 Subject: [PATCH] avoid ambiguous associated item in `TryFrom` implementations This was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! See also: https://github.com/rust-lang/rust/issues/57644 --- capnpc/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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![