Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ambiguous lifetimes. #16

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/lending_iterator/constructors/windows_mut_.rs
Original file line number Diff line number Diff line change
@@ -50,18 +50,18 @@ for
&'next mut [T; WINDOW_SIZE]
;

fn next (
self: &'_ mut WindowsMut<&'lt mut [T], WINDOW_SIZE>,
) -> Option<&'_ mut [T; WINDOW_SIZE]>
fn next<'a> (
self: &'a mut WindowsMut<&'lt mut [T], WINDOW_SIZE>,
) -> Option<&'a mut [T; WINDOW_SIZE]>
{
self.nth(0)
}

#[inline]
fn nth (
self: &'_ mut WindowsMut<&'lt mut [T], WINDOW_SIZE>,
fn nth<'a> (
self: &'a mut WindowsMut<&'lt mut [T], WINDOW_SIZE>,
n: usize,
) -> Option<&'_ mut [T; WINDOW_SIZE]>
) -> Option<&'a mut [T; WINDOW_SIZE]>
{
let new_start = self.start.checked_add(n)?;
let slice =
Loading