Skip to content

Commit

Permalink
Fixed compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostie314159 committed Jan 30, 2024
1 parent 49b69e0 commit b7d1a37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awdl-frame-parser"
version = "0.3.5"
version = "0.3.6"
edition = "2021"
description = "A parser for AWDL data and action frames."
authors = ["Frostie314159"]
Expand Down
8 changes: 4 additions & 4 deletions src/tlvs/data_path/data_path_state_tlv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,20 @@ impl<'a> TryFromCtx<'a> for DataPathStateTLV {
.then(|| {
let country_code = from.gread::<[u8; 2]>(&mut offset)?.map(|x| x as char);
offset += 1;
Ok(country_code)
Ok::<[char; 2], scroll::Error>(country_code)
})
.transpose()?;
let channel_map = flags
.channel_map_present
.then(|| {
Ok(DataPathChannel::from_u16(
Ok::<DataPathChannel, scroll::Error>(DataPathChannel::from_u16(
from.gread_with(&mut offset, Endian::Little)?,
))
})
.transpose()?;
let infra_bssid_channel = flags
.infra_bssid_channel_present
.then(|| Ok((from.gread(&mut offset)?, from.gread(&mut offset)?)))
.then(|| Ok::<(MACAddress, u16), scroll::Error>((from.gread(&mut offset)?, from.gread(&mut offset)?)))
.transpose()?;
let infra_address = flags
.infra_address_present
Expand Down Expand Up @@ -179,7 +179,7 @@ impl<'a> TryFromCtx<'a> for DataPathStateTLV {
let (extended_flags, log_trigger_id, rlfc, stats) = flags
.extended_flags
.then(|| {
Ok({
Ok::<(Option<DataPathExtendedFlags>, Option<u16>, Option<u32>, Option<DataPathStats>), scroll::Error>({
let extended_flags = DataPathExtendedFlags::from_representation(
from.gread_with(&mut offset, Endian::Little)?,
);
Expand Down

0 comments on commit b7d1a37

Please sign in to comment.