From 34d57a3c217c45ecb7e63c1998d795244f3524cb Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Fri, 15 Nov 2024 10:52:57 -0500 Subject: [PATCH] more lifetime elision in generated code --- capnp-rpc/src/rpc_capnp.rs | 282 ++++++++-------- capnp-rpc/src/rpc_twoparty_capnp.rs | 86 ++--- capnp/src/schema_capnp.rs | 492 ++++++++++++++-------------- capnpc/src/codegen.rs | 16 +- 4 files changed, 438 insertions(+), 438 deletions(-) diff --git a/capnp-rpc/src/rpc_capnp.rs b/capnp-rpc/src/rpc_capnp.rs index 682022331..92b604ccb 100644 --- a/capnp-rpc/src/rpc_capnp.rs +++ b/capnp-rpc/src/rpc_capnp.rs @@ -35,14 +35,14 @@ pub mod message { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -64,7 +64,7 @@ pub mod message { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -293,14 +293,14 @@ pub mod message { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -350,7 +350,7 @@ pub mod message { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -1140,14 +1140,14 @@ pub mod bootstrap { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -1169,7 +1169,7 @@ pub mod bootstrap { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1228,14 +1228,14 @@ pub mod bootstrap { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -1285,7 +1285,7 @@ pub mod bootstrap { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -1458,14 +1458,14 @@ pub mod call { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -1487,7 +1487,7 @@ pub mod call { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1584,14 +1584,14 @@ pub mod call { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 3, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -1641,7 +1641,7 @@ pub mod call { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -2024,14 +2024,14 @@ pub mod call { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -2055,7 +2055,7 @@ pub mod call { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -2120,14 +2120,14 @@ pub mod call { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 3, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -2182,7 +2182,7 @@ pub mod call { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -2394,14 +2394,14 @@ pub mod return_ { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -2423,7 +2423,7 @@ pub mod return_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -2529,14 +2529,14 @@ pub mod return_ { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 2, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -2586,7 +2586,7 @@ pub mod return_ { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -2997,14 +2997,14 @@ pub mod finish { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -3026,7 +3026,7 @@ pub mod finish { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3085,14 +3085,14 @@ pub mod finish { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -3142,7 +3142,7 @@ pub mod finish { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -3335,14 +3335,14 @@ pub mod resolve { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -3364,7 +3364,7 @@ pub mod resolve { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3447,14 +3447,14 @@ pub mod resolve { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -3504,7 +3504,7 @@ pub mod resolve { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -3752,14 +3752,14 @@ pub mod release { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -3781,7 +3781,7 @@ pub mod release { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3836,14 +3836,14 @@ pub mod release { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -3893,7 +3893,7 @@ pub mod release { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -4054,14 +4054,14 @@ pub mod disembargo { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -4083,7 +4083,7 @@ pub mod disembargo { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -4145,14 +4145,14 @@ pub mod disembargo { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -4202,7 +4202,7 @@ pub mod disembargo { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -4385,14 +4385,14 @@ pub mod disembargo { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -4416,7 +4416,7 @@ pub mod disembargo { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -4477,14 +4477,14 @@ pub mod disembargo { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -4539,7 +4539,7 @@ pub mod disembargo { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -4760,14 +4760,14 @@ pub mod provide { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -4789,7 +4789,7 @@ pub mod provide { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -4859,14 +4859,14 @@ pub mod provide { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -4916,7 +4916,7 @@ pub mod provide { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -5133,14 +5133,14 @@ pub mod accept { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -5162,7 +5162,7 @@ pub mod accept { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5225,14 +5225,14 @@ pub mod accept { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -5282,7 +5282,7 @@ pub mod accept { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -5478,14 +5478,14 @@ pub mod join { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -5507,7 +5507,7 @@ pub mod join { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5577,14 +5577,14 @@ pub mod join { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -5634,7 +5634,7 @@ pub mod join { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -5851,14 +5851,14 @@ pub mod message_target { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -5880,7 +5880,7 @@ pub mod message_target { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5947,14 +5947,14 @@ pub mod message_target { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -6004,7 +6004,7 @@ pub mod message_target { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -6200,14 +6200,14 @@ pub mod payload { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -6229,7 +6229,7 @@ pub mod payload { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -6299,14 +6299,14 @@ pub mod payload { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 2, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -6356,7 +6356,7 @@ pub mod payload { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -6563,14 +6563,14 @@ pub mod cap_descriptor { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -6592,7 +6592,7 @@ pub mod cap_descriptor { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -6683,14 +6683,14 @@ pub mod cap_descriptor { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -6740,7 +6740,7 @@ pub mod cap_descriptor { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -7092,14 +7092,14 @@ pub mod promised_answer { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -7121,7 +7121,7 @@ pub mod promised_answer { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -7187,14 +7187,14 @@ pub mod promised_answer { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -7244,7 +7244,7 @@ pub mod promised_answer { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -7446,14 +7446,14 @@ pub mod promised_answer { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -7477,7 +7477,7 @@ pub mod promised_answer { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -7534,14 +7534,14 @@ pub mod promised_answer { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -7596,7 +7596,7 @@ pub mod promised_answer { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -7768,14 +7768,14 @@ pub mod third_party_cap_descriptor { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -7797,7 +7797,7 @@ pub mod third_party_cap_descriptor { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -7856,14 +7856,14 @@ pub mod third_party_cap_descriptor { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -7913,7 +7913,7 @@ pub mod third_party_cap_descriptor { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -8085,14 +8085,14 @@ pub mod exception { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -8114,7 +8114,7 @@ pub mod exception { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -8198,14 +8198,14 @@ pub mod exception { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -8255,7 +8255,7 @@ pub mod exception { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -8524,7 +8524,7 @@ pub mod exception { .into() } } - impl<'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { + impl ::core::convert::From for ::capnp::dynamic_value::Reader<'_> { fn from(e: Type) -> Self { ::capnp::dynamic_value::Enum::new( e.into(), diff --git a/capnp-rpc/src/rpc_twoparty_capnp.rs b/capnp-rpc/src/rpc_twoparty_capnp.rs index 8906a9898..c886ca62c 100644 --- a/capnp-rpc/src/rpc_twoparty_capnp.rs +++ b/capnp-rpc/src/rpc_twoparty_capnp.rs @@ -18,7 +18,7 @@ impl ::capnp::introspect::Introspect for Side { .into() } } -impl<'a> ::core::convert::From for ::capnp::dynamic_value::Reader<'a> { +impl ::core::convert::From for ::capnp::dynamic_value::Reader<'_> { fn from(e: Side) -> Self { ::capnp::dynamic_value::Enum::new( e.into(), @@ -113,14 +113,14 @@ pub mod vat_id { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -142,7 +142,7 @@ pub mod vat_id { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -195,14 +195,14 @@ pub mod vat_id { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -252,7 +252,7 @@ pub mod vat_id { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -394,14 +394,14 @@ pub mod provision_id { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -423,7 +423,7 @@ pub mod provision_id { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -474,14 +474,14 @@ pub mod provision_id { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -531,7 +531,7 @@ pub mod provision_id { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -668,14 +668,14 @@ pub mod recipient_id { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -697,7 +697,7 @@ pub mod recipient_id { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -744,14 +744,14 @@ pub mod recipient_id { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -801,7 +801,7 @@ pub mod recipient_id { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -911,14 +911,14 @@ pub mod third_party_cap_id { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -940,7 +940,7 @@ pub mod third_party_cap_id { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -987,14 +987,14 @@ pub mod third_party_cap_id { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 0, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -1044,7 +1044,7 @@ pub mod third_party_cap_id { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -1155,14 +1155,14 @@ pub mod join_key_part { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -1184,7 +1184,7 @@ pub mod join_key_part { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1243,14 +1243,14 @@ pub mod join_key_part { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -1300,7 +1300,7 @@ pub mod join_key_part { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, @@ -1486,14 +1486,14 @@ pub mod join_result { pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> ::capnp::traits::HasTypeId for Reader<'a> { + impl ::capnp::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a> { @@ -1515,7 +1515,7 @@ pub mod join_result { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1578,14 +1578,14 @@ pub mod join_result { pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a>, } - impl<'a> ::capnp::traits::HasStructSize for Builder<'a> { + impl ::capnp::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> ::capnp::traits::HasTypeId for Builder<'a> { + impl ::capnp::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a> { @@ -1635,7 +1635,7 @@ pub mod join_result { } } - impl<'a> ::capnp::traits::SetterInput for Reader<'a> { + impl ::capnp::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, diff --git a/capnp/src/schema_capnp.rs b/capnp/src/schema_capnp.rs index 73f0748bc..890a6fa9a 100644 --- a/capnp/src/schema_capnp.rs +++ b/capnp/src/schema_capnp.rs @@ -32,14 +32,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -61,7 +61,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -191,14 +191,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -245,7 +245,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -824,14 +824,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -853,7 +853,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -911,14 +911,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 0, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -968,7 +968,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -1121,14 +1121,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -1150,7 +1150,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1212,14 +1212,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -1269,7 +1269,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -1446,14 +1446,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -1475,7 +1475,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1555,14 +1555,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -1612,7 +1612,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -1864,14 +1864,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -1895,7 +1895,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -1953,14 +1953,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 0, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -2015,7 +2015,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -2174,14 +2174,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -2203,7 +2203,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -2291,14 +2291,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -2348,7 +2348,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -2670,14 +2670,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -2699,7 +2699,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -2760,14 +2760,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -2817,7 +2817,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -2985,14 +2985,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -3014,7 +3014,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3089,14 +3089,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -3146,7 +3146,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -3371,14 +3371,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -3400,7 +3400,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3469,14 +3469,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -3526,7 +3526,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -3734,14 +3734,14 @@ pub mod node { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -3763,7 +3763,7 @@ pub mod node { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -3869,14 +3869,14 @@ pub mod node { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 5, pointers: 6, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -3926,7 +3926,7 @@ pub mod node { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -4393,14 +4393,14 @@ pub mod field { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -4422,7 +4422,7 @@ pub mod field { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -4514,14 +4514,14 @@ pub mod field { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 4, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -4568,7 +4568,7 @@ pub mod field { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -4904,14 +4904,14 @@ pub mod field { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -4933,7 +4933,7 @@ pub mod field { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5012,14 +5012,14 @@ pub mod field { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 4, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -5069,7 +5069,7 @@ pub mod field { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -5330,14 +5330,14 @@ pub mod field { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -5359,7 +5359,7 @@ pub mod field { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5410,14 +5410,14 @@ pub mod field { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 4, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -5467,7 +5467,7 @@ pub mod field { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -5605,14 +5605,14 @@ pub mod field { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -5634,7 +5634,7 @@ pub mod field { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -5689,14 +5689,14 @@ pub mod field { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 4, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -5746,7 +5746,7 @@ pub mod field { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -5918,14 +5918,14 @@ pub mod enumerant { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -5947,7 +5947,7 @@ pub mod enumerant { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -6023,14 +6023,14 @@ pub mod enumerant { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -6077,7 +6077,7 @@ pub mod enumerant { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -6307,14 +6307,14 @@ pub mod superclass { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -6336,7 +6336,7 @@ pub mod superclass { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -6398,14 +6398,14 @@ pub mod superclass { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -6452,7 +6452,7 @@ pub mod superclass { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -6637,14 +6637,14 @@ pub mod method { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -6666,7 +6666,7 @@ pub mod method { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -6787,14 +6787,14 @@ pub mod method { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 5, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -6841,7 +6841,7 @@ pub mod method { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -7275,14 +7275,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -7304,7 +7304,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -7376,14 +7376,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -7430,7 +7430,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -7969,14 +7969,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -7998,7 +7998,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -8056,14 +8056,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -8113,7 +8113,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -8276,14 +8276,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -8305,7 +8305,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -8367,14 +8367,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -8424,7 +8424,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -8608,14 +8608,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -8637,7 +8637,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -8699,14 +8699,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -8756,7 +8756,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -8941,14 +8941,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -8970,7 +8970,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -9032,14 +9032,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -9089,7 +9089,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -9276,14 +9276,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -9305,7 +9305,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -9361,14 +9361,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -9418,7 +9418,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -9614,14 +9614,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -9645,7 +9645,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -9702,14 +9702,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -9764,7 +9764,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -9979,14 +9979,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -10010,7 +10010,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -10065,14 +10065,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -10127,7 +10127,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -10291,14 +10291,14 @@ pub mod type_ { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -10322,7 +10322,7 @@ pub mod type_ { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -10373,14 +10373,14 @@ pub mod type_ { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 3, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -10435,7 +10435,7 @@ pub mod type_ { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -10577,14 +10577,14 @@ pub mod brand { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -10606,7 +10606,7 @@ pub mod brand { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -10667,14 +10667,14 @@ pub mod brand { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 0, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -10721,7 +10721,7 @@ pub mod brand { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -10892,14 +10892,14 @@ pub mod brand { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -10921,7 +10921,7 @@ pub mod brand { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -10992,14 +10992,14 @@ pub mod brand { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 2, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -11049,7 +11049,7 @@ pub mod brand { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -11286,14 +11286,14 @@ pub mod brand { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -11315,7 +11315,7 @@ pub mod brand { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -11382,14 +11382,14 @@ pub mod brand { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -11439,7 +11439,7 @@ pub mod brand { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -11640,14 +11640,14 @@ pub mod value { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -11669,7 +11669,7 @@ pub mod value { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -11792,14 +11792,14 @@ pub mod value { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 2, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -11846,7 +11846,7 @@ pub mod value { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -12493,14 +12493,14 @@ pub mod annotation { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -12522,7 +12522,7 @@ pub mod annotation { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -12595,14 +12595,14 @@ pub mod annotation { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -12649,7 +12649,7 @@ pub mod annotation { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -12876,7 +12876,7 @@ impl crate::introspect::Introspect for ElementSize { .into() } } -impl<'a> ::core::convert::From for crate::dynamic_value::Reader<'a> { +impl ::core::convert::From for crate::dynamic_value::Reader<'_> { fn from(e: ElementSize) -> Self { crate::dynamic_value::Enum::new( e.into(), @@ -13006,14 +13006,14 @@ pub mod capnp_version { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -13035,7 +13035,7 @@ pub mod capnp_version { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -13094,14 +13094,14 @@ pub mod capnp_version { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 0, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -13148,7 +13148,7 @@ pub mod capnp_version { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -13333,14 +13333,14 @@ pub mod code_generator_request { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -13362,7 +13362,7 @@ pub mod code_generator_request { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -13469,14 +13469,14 @@ pub mod code_generator_request { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 0, pointers: 4, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -13523,7 +13523,7 @@ pub mod code_generator_request { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -13859,14 +13859,14 @@ pub mod code_generator_request { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -13888,7 +13888,7 @@ pub mod code_generator_request { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -13968,14 +13968,14 @@ pub mod code_generator_request { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 2, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -14025,7 +14025,7 @@ pub mod code_generator_request { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, @@ -14279,14 +14279,14 @@ pub mod code_generator_request { pub struct Reader<'a> { reader: crate::private::layout::StructReader<'a>, } - impl<'a> ::core::marker::Copy for Reader<'a> {} - impl<'a> ::core::clone::Clone for Reader<'a> { + impl ::core::marker::Copy for Reader<'_> {} + impl ::core::clone::Clone for Reader<'_> { fn clone(&self) -> Self { *self } } - impl<'a> crate::traits::HasTypeId for Reader<'a> { + impl crate::traits::HasTypeId for Reader<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Reader<'a> { @@ -14310,7 +14310,7 @@ pub mod code_generator_request { } } - impl<'a> ::core::fmt::Debug for Reader<'a> { + impl ::core::fmt::Debug for Reader<'_> { fn fmt( &self, f: &mut ::core::fmt::Formatter<'_>, @@ -14372,14 +14372,14 @@ pub mod code_generator_request { pub struct Builder<'a> { builder: crate::private::layout::StructBuilder<'a>, } - impl<'a> crate::traits::HasStructSize for Builder<'a> { + impl crate::traits::HasStructSize for Builder<'_> { const STRUCT_SIZE: crate::private::layout::StructSize = crate::private::layout::StructSize { data: 1, pointers: 1, }; } - impl<'a> crate::traits::HasTypeId for Builder<'a> { + impl crate::traits::HasTypeId for Builder<'_> { const TYPE_ID: u64 = _private::TYPE_ID; } impl<'a> ::core::convert::From> for Builder<'a> { @@ -14434,7 +14434,7 @@ pub mod code_generator_request { } } - impl<'a> crate::traits::SetterInput for Reader<'a> { + impl crate::traits::SetterInput for Reader<'_> { fn set_pointer_builder( mut pointer: crate::private::layout::PointerBuilder<'_>, value: Self, diff --git a/capnpc/src/codegen.rs b/capnpc/src/codegen.rs index c2102efc0..6d177b88e 100644 --- a/capnpc/src/codegen.rs +++ b/capnpc/src/codegen.rs @@ -2139,7 +2139,7 @@ fn generate_node( let builder_struct_size = Branch(vec![ - Line(fmt!(ctx,"impl <'a,{0}> {capnp}::traits::HasStructSize for Builder<'a,{0}> {1} {{", + Line(fmt!(ctx,"impl <{0}> {capnp}::traits::HasStructSize for Builder<'_,{0}> {1} {{", params.params, params.where_clause)), indent(Line( fmt!(ctx,"const STRUCT_SIZE: {capnp}::private::layout::StructSize = {capnp}::private::layout::StructSize {{ data: {}, pointers: {} }};", data_size as usize, pointer_size as usize))), @@ -2207,15 +2207,15 @@ fn generate_node( // Manually implement Copy/Clone because `derive` only kicks in if all of // the parameters are known to implement Copy/Clone. Branch(vec![ - Line(format!("impl <'a,{0}> ::core::marker::Copy for Reader<'a,{0}> {1} {{}}", + Line(format!("impl <{0}> ::core::marker::Copy for Reader<'_,{0}> {1} {{}}", params.params, params.where_clause)), - Line(format!("impl <'a,{0}> ::core::clone::Clone for Reader<'a,{0}> {1} {{", + Line(format!("impl <{0}> ::core::clone::Clone for Reader<'_,{0}> {1} {{", params.params, params.where_clause)), indent(Line("fn clone(&self) -> Self { *self }".into())), Line("}".into())]), BlankLine, Branch(vec![ - Line(fmt!(ctx,"impl <'a,{0}> {capnp}::traits::HasTypeId for Reader<'a,{0}> {1} {{", + Line(fmt!(ctx,"impl <{0}> {capnp}::traits::HasTypeId for Reader<'_,{0}> {1} {{", params.params, params.where_clause)), indent(vec![line("const TYPE_ID: u64 = _private::TYPE_ID;")]), line("}")]), @@ -2237,7 +2237,7 @@ fn generate_node( ]), line("}"), BlankLine, - Line(format!("impl <'a,{0}> ::core::fmt::Debug for Reader<'a,{0}> {1} {{", + Line(format!("impl <{0}> ::core::fmt::Debug for Reader<'_,{0}> {1} {{", params.params, params.where_clause)), indent(vec![ Line("fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {".into()), @@ -2302,7 +2302,7 @@ fn generate_node( }), builder_struct_size, Branch(vec![ - Line(fmt!(ctx,"impl <'a,{0}> {capnp}::traits::HasTypeId for Builder<'a,{0}> {1} {{", + Line(fmt!(ctx,"impl <{0}> {capnp}::traits::HasTypeId for Builder<'_,{0}> {1} {{", params.params, params.where_clause)), indent(vec![ line("const TYPE_ID: u64 = _private::TYPE_ID;")]), @@ -2339,7 +2339,7 @@ fn generate_node( from_pointer_builder_impl, Line(fmt!(ctx, - "impl <'a,{0}> {capnp}::traits::SetterInput> for Reader<'a,{0}> {1} {{", + "impl <{0}> {capnp}::traits::SetterInput> for Reader<'_,{0}> {1} {{", params.params, params.where_clause)), indent(Line(fmt!(ctx,"fn set_pointer_builder(mut pointer: {capnp}::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> {capnp}::Result<()> {{ pointer.set_struct(&value.reader, canonicalize) }}"))), line("}"), @@ -2442,7 +2442,7 @@ fn generate_node( ])); output.push(Branch(vec![ - Line(fmt!(ctx,"impl <'a> ::core::convert::From<{last_name}> for {capnp}::dynamic_value::Reader<'a> {{")), + Line(fmt!(ctx,"impl ::core::convert::From<{last_name}> for {capnp}::dynamic_value::Reader<'_> {{")), indent(Line(fmt!(ctx, "fn from(e: {last_name}) -> Self {{ {capnp}::dynamic_value::Enum::new(e.into(), {capnp}::introspect::RawEnumSchema {{ encoded_node: &{0}::ENCODED_NODE, annotation_types: {0}::get_annotation_types }}.into()).into() }}", name_as_mod ))), Line("}".into())