Skip to content

Commit

Permalink
Made TLV iterator clonable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostie314159 committed Dec 22, 2023
1 parent 7526d68 commit 433e50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub struct AWDLActionFrame<'a> {
pub tagged_data: &'a [u8],
}
impl<'a> AWDLActionFrame<'a> {
pub fn get_named_tlvs(&'a self) -> impl Iterator<Item = AWDLTLV<'a>> {
pub fn get_named_tlvs(&'a self) -> impl Iterator<Item = AWDLTLV<'a>> + Clone {
repeat(()).scan(0, |offset, _| self.tagged_data.gread(offset).ok())
}
}
Expand Down

0 comments on commit 433e50a

Please sign in to comment.