Skip to content

Commit

Permalink
Fix clippy complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jul 17, 2024
1 parent f8d6038 commit 57fb0eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl TryCopyTo<ffi::pfvar::pf_rule> for FilterRule {
self.to.try_copy_to(&mut pf_rule.dst)?;
self.label
.try_copy_to(&mut pf_rule.label)
.map_err(|reason| ErrorInternal::InvalidLabel(reason))?;
.map_err(ErrorInternal::InvalidLabel)?;
self.user.copy_to(&mut pf_rule.uid);
self.group.copy_to(&mut pf_rule.gid);
if let Some(icmp_type) = self.icmp_type {
Expand Down Expand Up @@ -235,7 +235,7 @@ impl TryCopyTo<ffi::pfvar::pf_rule> for RedirectRule {
self.to.try_copy_to(&mut pf_rule.dst)?;
self.label
.try_copy_to(&mut pf_rule.label)
.map_err(|reason| ErrorInternal::InvalidLabel(reason))?;
.map_err(ErrorInternal::InvalidLabel)?;
self.user.copy_to(&mut pf_rule.uid);
self.group.copy_to(&mut pf_rule.gid);

Expand Down

0 comments on commit 57fb0eb

Please sign in to comment.