Skip to content

Commit 9390a63

Browse files
committed
chore: fix cargo clippy warning
Signed-off-by: xixishidibei <[email protected]>
1 parent 6bfa241 commit 9390a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives/decode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl<'s> UncheckedHrpstring<'s> {
135135

136136
let ret = UncheckedHrpstring {
137137
hrp: Hrp::parse(hrp)?,
138-
data_part_ascii: rest[1..].as_bytes(), // Skip the separator.
138+
data_part_ascii: &rest.as_bytes()[1..], // Skip the separator.
139139
hrpstring_length: s.len(),
140140
};
141141

0 commit comments

Comments
 (0)