Commit
Author: mdecimus [mauro@stalw.art]
Hash: 25ba43dcc5b17455de213a4c8e5d9d8413078d24
Timestamp: Fri, 01 Mar 2024 15:55:10 +0000 (8 months ago)

+18 -0 +/-3 browse
v0.3.8
1diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
2new file mode 100644
3index 0000000..fb1fa83
4--- /dev/null
5+++ b/.github/FUNDING.yml
6 @@ -0,0 +1,13 @@
7+ # These are supported funding model platforms
8+
9+ github: stalwartlabs
10+ patreon: # Replace with a single Patreon username
11+ open_collective: # Replace with a single Open Collective username
12+ ko_fi: # Replace with a single Ko-fi username
13+ tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
14+ community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
15+ liberapay: stalwartlabs
16+ issuehunt: # Replace with a single IssueHunt username
17+ otechie: # Replace with a single Otechie username
18+ lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
19+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
20 diff --git a/src/dmarc/mod.rs b/src/dmarc/mod.rs
21index 96c68da..7dc5c63 100644
22--- a/src/dmarc/mod.rs
23+++ b/src/dmarc/mod.rs
24 @@ -204,6 +204,10 @@ impl DmarcOutput {
25 }
26
27 impl Dmarc {
28+ pub fn pct(&self) -> u8 {
29+ self.pct
30+ }
31+
32 pub fn ruf(&self) -> &[URI] {
33 &self.ruf
34 }
35 diff --git a/src/spf/verify.rs b/src/spf/verify.rs
36index c68b3be..b781a02 100644
37--- a/src/spf/verify.rs
38+++ b/src/spf/verify.rs
39 @@ -78,6 +78,7 @@ impl Resolver {
40 }
41
42 #[allow(clippy::while_let_on_iterator)]
43+ #[allow(clippy::iter_skip_zero)]
44 pub async fn check_host(
45 &self,
46 ip: IpAddr,