File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ pub struct WriteEarlyData<'a> {
495
495
}
496
496
497
497
impl < ' a > WriteEarlyData < ' a > {
498
- fn new ( sess : & ' a mut ClientConnection ) -> WriteEarlyData < ' a > {
498
+ fn new ( sess : & ' a mut ClientConnection ) -> Self {
499
499
WriteEarlyData { sess }
500
500
}
501
501
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ impl<'a> Writer<'a> {
268
268
///
269
269
/// This is not an external interface. Get one of these objects
270
270
/// from [`Connection::writer`].
271
- pub ( crate ) fn new ( sink : & ' a mut dyn PlaintextSink ) -> Writer < ' a > {
271
+ pub ( crate ) fn new ( sink : & ' a mut dyn PlaintextSink ) -> Self {
272
272
Writer { sink }
273
273
}
274
274
}
Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ impl<'a> LengthPrefixedBuffer<'a> {
268
268
///
269
269
/// After this, the body of the length-delimited structure should be appended to `LengthPrefixedBuffer::buf`.
270
270
/// The length header is corrected in `LengthPrefixedBuffer::drop`.
271
- pub ( crate ) fn new ( size_len : ListLength , buf : & ' a mut Vec < u8 > ) -> LengthPrefixedBuffer < ' a > {
271
+ pub ( crate ) fn new ( size_len : ListLength , buf : & ' a mut Vec < u8 > ) -> Self {
272
272
let len_offset = buf. len ( ) ;
273
273
buf. extend ( match size_len {
274
274
ListLength :: U8 => & [ 0xff ] [ ..] ,
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ pub struct ParsedCertificate<'a>(pub(crate) webpki::EndEntityCert<'a>);
119
119
120
120
impl < ' a > TryFrom < & ' a CertificateDer < ' a > > for ParsedCertificate < ' a > {
121
121
type Error = Error ;
122
- fn try_from ( value : & ' a CertificateDer < ' a > ) -> Result < ParsedCertificate < ' a > , Self :: Error > {
122
+ fn try_from ( value : & ' a CertificateDer < ' a > ) -> Result < Self , Self :: Error > {
123
123
webpki:: EndEntityCert :: try_from ( value)
124
124
. map_err ( pki_error)
125
125
. map ( ParsedCertificate )
You can’t perform that action at this time.
0 commit comments