From b203adbb690a918524c2a06aaf0fd7035c1a2eac Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Mon, 27 May 2024 10:40:20 -0400 Subject: [PATCH] remove unneeded & --- capnp-rpc/src/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capnp-rpc/src/rpc.rs b/capnp-rpc/src/rpc.rs index 29d900425..a4243d598 100644 --- a/capnp-rpc/src/rpc.rs +++ b/capnp-rpc/src/rpc.rs @@ -354,7 +354,7 @@ fn to_pipeline_ops( } fn from_error(error: &Error, mut builder: exception::Builder) { - builder.set_reason(&error.to_string()); + builder.set_reason(error.to_string()); let typ = match error.kind { ::capnp::ErrorKind::Failed => exception::Type::Failed, ::capnp::ErrorKind::Overloaded => exception::Type::Overloaded,