Skip to content

Commit

Permalink
fix try_attach_all() method again
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Dec 10, 2024
1 parent e78097b commit bc7f0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl Request {
let Some(ref target) = self.target else {
return Err(BuildError::NoTarget);
};
Ok(self.attach_all(target.clone()))
Ok(self.attach_all(&target.clone()))
}
/// Attach all capabilities we have that were issued by `target` to the next message.
pub fn attach_all(mut self, target: &Address) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion src/types/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl Response {
let Some(ref target) = self.target else {
return Err(BuildError::NoTarget);
};
Ok(self.attach_all(target.clone()))
Ok(self.attach_all(&target.clone()))
}
/// Attach all capabilities we have that were issued by `target` to the next message.
pub fn attach_all(mut self, target: &Address) -> Self {
Expand Down

0 comments on commit bc7f0dd

Please sign in to comment.