Skip to content

Commit

Permalink
update signature of ImbuedMessageBuilder::set_root()
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Jan 13, 2024
1 parent bb02d8e commit de0f8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capnp-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ where
root.get_as()
}

pub fn set_root<From: ::capnp::traits::SetterInput<impl ::capnp::traits::Owned>>(
pub fn set_root<T: ::capnp::traits::Owned>(
&mut self,
value: From,
value: impl ::capnp::traits::SetterInput<T>,
) -> ::capnp::Result<()> {
use capnp::traits::ImbueMut;
let mut root: ::capnp::any_pointer::Builder = self.builder.get_root()?;
Expand Down

0 comments on commit de0f8ea

Please sign in to comment.