File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl<'s> UncheckedHrpstring<'s> {
162
162
/// assert!(unchecked.data_part_ascii().iter().eq(ascii.as_bytes().iter()))
163
163
/// ```
164
164
#[ inline]
165
- pub fn data_part_ascii ( & self ) -> & [ u8 ] { self . data_part_ascii }
165
+ pub fn data_part_ascii ( & self ) -> & ' s [ u8 ] { self . data_part_ascii }
166
166
167
167
/// Attempts to remove the first byte of the data part, treating it as a witness version.
168
168
///
@@ -371,7 +371,7 @@ impl<'s> CheckedHrpstring<'s> {
371
371
/// assert!(checked.data_part_ascii_no_checksum().iter().eq(ascii.as_bytes().iter()))
372
372
/// ```
373
373
#[ inline]
374
- pub fn data_part_ascii_no_checksum ( & self ) -> & [ u8 ] { self . ascii }
374
+ pub fn data_part_ascii_no_checksum ( & self ) -> & ' s [ u8 ] { self . ascii }
375
375
376
376
/// Returns an iterator that yields the data part of the parsed bech32 encoded string.
377
377
///
@@ -576,7 +576,7 @@ impl<'s> SegwitHrpstring<'s> {
576
576
/// assert!(segwit.data_part_ascii_no_witver_no_checksum().iter().eq(ascii.as_bytes().iter()))
577
577
/// ```
578
578
#[ inline]
579
- pub fn data_part_ascii_no_witver_no_checksum ( & self ) -> & [ u8 ] { self . ascii }
579
+ pub fn data_part_ascii_no_witver_no_checksum ( & self ) -> & ' s [ u8 ] { self . ascii }
580
580
581
581
/// Returns an iterator that yields the data part, excluding the witness version, of the parsed
582
582
/// bech32 encoded string.
You can’t perform that action at this time.
0 commit comments