Remove redundant lifetime constraints

It compiles fine without them, so meh
This commit is contained in:
Chris Wong 2015-01-12 16:02:30 +13:00
parent 33c487c5e4
commit 75dffff135
2 changed files with 2 additions and 2 deletions
maud_macros/src

View file

@ -58,7 +58,7 @@ struct Parser<'cx: 'r, 's: 'cx, 'i, 'r, 'o: 'r> {
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.
fn shift(&mut self, n: usize) {
self.input = self.input.slice_from(n);

View file

@ -18,7 +18,7 @@ pub struct Renderer<'cx, 's: 'cx, 'o> {
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
F: for<'o_> FnOnce(&mut Renderer<'cx, 's, 'o_>)
{