Skip to content

Commit

Permalink
fix: Fix syntax error in from_hex function in PjsExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
S0c5 committed Apr 30, 2024
1 parent 6728810 commit 3256b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pjs-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ impl PjsExtension {
}
fn from_hex(input: &str, buf: &mut [u8]) {
for (i, b) in buf.iter_mut().enumerate() {
let Some(s) = input.get(i * 2..i * 2 + 2) else {
let Some(s) = input.get((i * 2 + 2)..(i * 2 + 4)) else {
return;
};
log::info!("s({:?})", s);
Expand Down

0 comments on commit 3256b6a

Please sign in to comment.