Remove redundant lifetime constraints
It compiles fine without them, so meh
This commit is contained in:
parent
33c487c5e4
commit
75dffff135
2 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ struct Parser<'cx: 'r, 's: 'cx, 'i, 'r, 'o: 'r> {
|
||||||
render: &'r mut Renderer<'cx, 's, 'o>,
|
render: &'r mut Renderer<'cx, 's, 'o>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'cx: 'r, 's: 'cx, 'i, 'r, 'o: 'r> Parser<'cx, 's, 'i, 'r, 'o> {
|
impl<'cx, 's, 'i, 'r, 'o> Parser<'cx, 's, 'i, 'r, 'o> {
|
||||||
/// Consume `n` items from the input.
|
/// Consume `n` items from the input.
|
||||||
fn shift(&mut self, n: usize) {
|
fn shift(&mut self, n: usize) {
|
||||||
self.input = self.input.slice_from(n);
|
self.input = self.input.slice_from(n);
|
||||||
|
|
|
@ -18,7 +18,7 @@ pub struct Renderer<'cx, 's: 'cx, 'o> {
|
||||||
w: Ident,
|
w: Ident,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'cx, 's: 'cx, 'o> Renderer<'cx, 's, 'o> {
|
impl<'cx, 's, 'o> Renderer<'cx, 's, 'o> {
|
||||||
pub fn with<F>(cx: &'cx mut ExtCtxt<'s>, f: F) -> P<Expr> where
|
pub fn with<F>(cx: &'cx mut ExtCtxt<'s>, f: F) -> P<Expr> where
|
||||||
F: for<'o_> FnOnce(&mut Renderer<'cx, 's, 'o_>)
|
F: for<'o_> FnOnce(&mut Renderer<'cx, 's, 'o_>)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue