Skip to content

Commit

Permalink
impl<A> AsOutputSegments for ::std::sync::Arc<message::Builder<A>>
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 17, 2024
1 parent 56e57c8 commit 3ae30fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions capnp-futures/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,16 @@ where
}
}

/*impl <'a, A> AsOutputSegments for &'a message::Builder<A> where A: message::Allocator {
fn as_output_segments<'b>(&'b self) -> OutputSegments<'b> {
impl<A> AsOutputSegments for ::std::rc::Rc<message::Builder<A>>
where
A: message::Allocator,
{
fn as_output_segments(&self) -> OutputSegments {
self.get_segments_for_output()
}
}*/
}

impl<A> AsOutputSegments for ::std::rc::Rc<message::Builder<A>>
impl<A> AsOutputSegments for ::std::sync::Arc<message::Builder<A>>
where
A: message::Allocator,
{
Expand Down

0 comments on commit 3ae30fd

Please sign in to comment.