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,