Skip to content

Commit

Permalink
fix try_attach_all() method again**2
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Dec 10, 2024
1 parent bc7f0dd commit 13b315c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/types/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,6 @@ impl Response {
self.capabilities = capabilities;
self
}
/// Attach all capabilities we have that were issued by `target` (if set) to the next message.
pub fn try_attach_all(mut self) -> Result<Self, BuildError> {
let Some(ref target) = self.target else {
return Err(BuildError::NoTarget);
};
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 {
let target = target.clone();
Expand Down

0 comments on commit 13b315c

Please sign in to comment.