diff --git a/src/types/request.rs b/src/types/request.rs index 0dcce9f..54988f5 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -247,7 +247,8 @@ impl Request { let Some(ref target) = self.target else { return Err(BuildError::NoTarget); }; - Ok(self.attach_all(target.clone().as_ref())) + let target = target.clone(); + Ok(self.attach_all(&target)) } /// Attach all capabilities we have that were issued by `target` to the next message. pub fn attach_all(mut self, target: &Address) -> Self {