File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,8 @@ impl Request {
247247 let Some ( ref target) = self . target else {
248248 return Err ( BuildError :: NoTarget ) ;
249249 } ;
250- Ok ( self . attach_all ( target) )
250+ let target = target. clone ( ) ;
251+ Ok ( self . attach_all ( & target) )
251252 }
252253 /// Attach all capabilities we have that were issued by `target` to the next message.
253254 pub fn attach_all ( mut self , target : & Address ) -> Self {
Original file line number Diff line number Diff line change @@ -150,13 +150,6 @@ impl Response {
150150 self . capabilities = capabilities;
151151 self
152152 }
153- /// Attach all capabilities we have that were issued by `target` (if set) to the next message.
154- pub fn try_attach_all ( mut self ) -> Result < Self , BuildError > {
155- let Some ( ref target) = self . target else {
156- return Err ( BuildError :: NoTarget ) ;
157- } ;
158- Ok ( self . attach_all ( target) )
159- }
160153 /// Attach all capabilities we have that were issued by `target` to the next message.
161154 pub fn attach_all ( mut self , target : & Address ) -> Self {
162155 let target = target. clone ( ) ;
You can’t perform that action at this time.
0 commit comments