Skip to content

Commit

Permalink
Accept references to self on conversion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
chills42 committed Oct 24, 2017
1 parent ff459c7 commit f2da200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/flowgger/record_capnp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ pub mod record {
}

impl<'a> Builder<'a> {
pub fn as_reader(self) -> Reader<'a> {
pub fn as_reader(&self) -> Reader<'a> {
::capnp::traits::FromStructReader::new(self.builder.as_reader())
}
pub fn borrow(&mut self) -> Builder {
Expand Down Expand Up @@ -574,7 +574,7 @@ pub mod pair {
}

impl<'a> Builder<'a> {
pub fn as_reader(self) -> Reader<'a> {
pub fn as_reader(&self) -> Reader<'a> {
::capnp::traits::FromStructReader::new(self.builder.as_reader())
}
pub fn borrow(&mut self) -> Builder {
Expand Down Expand Up @@ -798,7 +798,7 @@ pub mod pair {
}

impl<'a> Builder<'a> {
pub fn as_reader(self) -> Reader<'a> {
pub fn as_reader(&self) -> Reader<'a> {
::capnp::traits::FromStructReader::new(self.builder.as_reader())
}
pub fn borrow(&mut self) -> Builder {
Expand Down

0 comments on commit f2da200

Please sign in to comment.