Skip to content

Commit

Permalink
Add explicit lifetimes, fixing nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Sep 18, 2024
1 parent 9b8e0cf commit c9c7062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/expect_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub struct ExpectGetCurrentTimeNanos<'a> {
}

impl<'a> ExpectGetCurrentTimeNanos<'a> {
pub fn expecting(tester: &'a mut Tester) -> ExpectGetCurrentTimeNanos {
pub fn expecting(tester: &'a mut Tester) -> ExpectGetCurrentTimeNanos<'a> {
ExpectGetCurrentTimeNanos { tester: tester }
}

Expand All @@ -44,7 +44,7 @@ pub struct ExpectGetBufferBytes<'a> {
}

impl<'a> ExpectGetBufferBytes<'a> {
pub fn expecting(tester: &'a mut Tester, buffer_type: Option<i32>) -> ExpectGetBufferBytes {
pub fn expecting(tester: &'a mut Tester, buffer_type: Option<i32>) -> ExpectGetBufferBytes<'a> {
ExpectGetBufferBytes {
tester: tester,
buffer_type: buffer_type,
Expand All @@ -66,7 +66,7 @@ pub struct ExpectGetHeaderMapPairs<'a> {
}

impl<'a> ExpectGetHeaderMapPairs<'a> {
pub fn expecting(tester: &'a mut Tester, map_type: Option<i32>) -> ExpectGetHeaderMapPairs {
pub fn expecting(tester: &'a mut Tester, map_type: Option<i32>) -> ExpectGetHeaderMapPairs<'a> {
ExpectGetHeaderMapPairs {
tester: tester,
map_type: map_type,
Expand Down
4 changes: 2 additions & 2 deletions src/settings_interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct DefaultBufferBytes<'a> {
}

impl<'a> DefaultBufferBytes<'a> {
pub fn expecting(tester: &'a mut Tester, buffer_type: i32) -> DefaultBufferBytes {
pub fn expecting(tester: &'a mut Tester, buffer_type: i32) -> DefaultBufferBytes<'a> {
DefaultBufferBytes {
tester: tester,
buffer_type: buffer_type,
Expand All @@ -42,7 +42,7 @@ pub struct DefaultHeaderMapPairs<'a> {
}

impl<'a> DefaultHeaderMapPairs<'a> {
pub fn expecting(tester: &'a mut Tester, map_type: i32) -> DefaultHeaderMapPairs {
pub fn expecting(tester: &'a mut Tester, map_type: i32) -> DefaultHeaderMapPairs<'a> {
DefaultHeaderMapPairs {
tester: tester,
map_type: map_type,
Expand Down

0 comments on commit c9c7062

Please sign in to comment.