This commit is contained in:
Folkert 2021-06-19 19:59:51 +02:00
parent af4ee51560
commit b20269d16d
4 changed files with 22 additions and 24 deletions

View file

@ -80,9 +80,9 @@ pub enum UnionLayout<'a> {
}
impl<'a> UnionLayout<'a> {
pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D, _parens: Parens) -> DocBuilder<'b, D, A>
pub fn to_doc<D, A>(self, alloc: &'a D, _parens: Parens) -> DocBuilder<'a, D, A>
where
D: DocAllocator<'b, A>,
D: DocAllocator<'a, A>,
D::Doc: Clone,
A: Clone,
{
@ -632,9 +632,9 @@ impl<'a> Layout<'a> {
}
}
pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D, parens: Parens) -> DocBuilder<'b, D, A>
pub fn to_doc<D, A>(self, alloc: &'a D, parens: Parens) -> DocBuilder<'a, D, A>
where
D: DocAllocator<'b, A>,
D: DocAllocator<'a, A>,
D::Doc: Clone,
A: Clone,
{
@ -919,9 +919,9 @@ impl<'a> Builtin<'a> {
}
}
pub fn to_doc<'b, D, A>(&'b self, alloc: &'b D, _parens: Parens) -> DocBuilder<'b, D, A>
pub fn to_doc<D, A>(self, alloc: &'a D, _parens: Parens) -> DocBuilder<'a, D, A>
where
D: DocAllocator<'b, A>,
D: DocAllocator<'a, A>,
D::Doc: Clone,
A: Clone,
{