Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ollipa committed Aug 2, 2023
1 parent be42fe7 commit 9654c1f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/reg_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl TryFrom<Attrs<'_, Attribute>> for RegulatoryDomain {
Attribute::RegAlpha2 => reg_domain.country_code = attr.get_payload_as_with_len()?,
Attribute::DfsRegion => {
reg_domain.dfs_region = match attr.get_payload_as::<u8>()? {
1 => DfsRegion::FCC,
2 => DfsRegion::ETSI,
1 => DfsRegion::Fcc,
2 => DfsRegion::Etsi,
3 => DfsRegion::JP,
_ => DfsRegion::Unset,
}
Expand Down Expand Up @@ -173,9 +173,9 @@ pub enum DfsRegion {
#[default]
Unset,
/// Country follows DFS master rules from FCC.
FCC,
Fcc,
/// Country follows DFS master rules from ETSI.
ETSI,
Etsi,
/// Country follows DFS master rules from JP/MKK/Telec.
JP,
}

0 comments on commit 9654c1f

Please sign in to comment.