Skip to content

Commit

Permalink
Rename input lifetime to 'src across the crate
Browse files Browse the repository at this point in the history
  • Loading branch information
zesterer committed Oct 26, 2024
1 parent a7a3c1f commit f63dc20
Show file tree
Hide file tree
Showing 13 changed files with 881 additions and 842 deletions.
24 changes: 14 additions & 10 deletions src/blanket.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use super::*;

impl<'a, T, I, O, E> Parser<'a, I, O, E> for &T
impl<'src, T, I, O, E> Parser<'src, I, O, E> for &T
where
T: ?Sized + Parser<'a, I, O, E>,
I: Input<'a>,
E: ParserExtra<'a, I>,
T: ?Sized + Parser<'src, I, O, E>,
I: Input<'src>,
E: ParserExtra<'src, I>,
{
fn go<M: Mode>(&self, inp: &mut InputRef<'a, '_, I, E>) -> PResult<M, O>
fn go<M: Mode>(&self, inp: &mut InputRef<'src, '_, I, E>) -> PResult<M, O>
where
Self: Sized,
{
Expand All @@ -16,15 +16,19 @@ where
go_extra!(O);
}

impl<'a, T, I, O, E> ConfigParser<'a, I, O, E> for &T
impl<'src, T, I, O, E> ConfigParser<'src, I, O, E> for &T
where
T: ?Sized + ConfigParser<'a, I, O, E>,
I: Input<'a>,
E: ParserExtra<'a, I>,
T: ?Sized + ConfigParser<'src, I, O, E>,
I: Input<'src>,
E: ParserExtra<'src, I>,
{
type Config = T::Config;

fn go_cfg<M: Mode>(&self, inp: &mut InputRef<'a, '_, I, E>, cfg: Self::Config) -> PResult<M, O>
fn go_cfg<M: Mode>(
&self,
inp: &mut InputRef<'src, '_, I, E>,
cfg: Self::Config,
) -> PResult<M, O>
where
Self: Sized,
{
Expand Down
Loading

0 comments on commit f63dc20

Please sign in to comment.