Skip to content

Commit

Permalink
fix try_attach_all() method again**4
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Dec 10, 2024
1 parent a11e32b commit 8a5b040
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8a5b040

Please sign in to comment.