Skip to content

Fix mismatched_lifetime_syntaxes #508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 15, 2025
Merged

Conversation

atuchin-m
Copy link
Collaborator

The PR addresses a new Rust warning mismatched_lifetime_syntaxes

@atuchin-m atuchin-m self-assigned this Aug 14, 2025
@atuchin-m atuchin-m requested a review from antonok-edm as a code owner August 14, 2025 13:18
@atuchin-m atuchin-m force-pushed the fix-mismatched_lifetime_syntaxes branch from 84f7f23 to 56f260d Compare August 14, 2025 13:22
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rust Benchmark

Benchmark suite Current: a03bb8e Previous: f15e8a3 Ratio
rule-match-browserlike/brave-list 2260398466 ns/iter (± 8972714) 2229390776 ns/iter (± 17671286) 1.01
rule-match-first-request/brave-list 1001220 ns/iter (± 4955) 994066 ns/iter (± 3696) 1.01
blocker_new/brave-list 155257774 ns/iter (± 1305323) 153266661 ns/iter (± 1659115) 1.01
blocker_new/brave-list-deserialize 67344397 ns/iter (± 1179767) 64183570 ns/iter (± 1176166) 1.05
memory-usage/brave-list-initial 17549140 ns/iter (± 3) 17549140 ns/iter (± 3) 1
memory-usage/brave-list-initial/max 64817658 ns/iter (± 3) 64817658 ns/iter (± 3) 1
memory-usage/brave-list-initial/alloc-count 1515544 ns/iter (± 3) 1515544 ns/iter (± 3) 1
memory-usage/brave-list-1000-requests 2505576 ns/iter (± 3) 2505576 ns/iter (± 3) 1
memory-usage/brave-list-1000-requests/alloc-count 66123 ns/iter (± 3) 66123 ns/iter (± 3) 1
url_cosmetic_resources/brave-list 210818 ns/iter (± 1780) 209381 ns/iter (± 2760) 1.01
cosmetic-class-id-match/brave-list 4331318 ns/iter (± 1197539) 4318678 ns/iter (± 1180356) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@atuchin-m atuchin-m force-pushed the fix-mismatched_lifetime_syntaxes branch 2 times, most recently from 055c9bc to cefed55 Compare August 14, 2025 13:51
@atuchin-m atuchin-m force-pushed the fix-mismatched_lifetime_syntaxes branch from cefed55 to a03bb8e Compare August 14, 2025 13:53
@@ -15,7 +15,14 @@ use crate::regex_manager::RegexManager;
use crate::request::Request;
use crate::utils::{Hash, ShortHash};

#[allow(dead_code, clippy::all, unused_imports, unsafe_code)]
#[allow(unknown_lints)]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is necessary for old Rust versions to support disabling mismatched_lifetime_syntaxes

@atuchin-m atuchin-m enabled auto-merge (squash) August 14, 2025 13:59
@atuchin-m atuchin-m merged commit 41caee2 into master Aug 15, 2025
9 checks passed
@atuchin-m atuchin-m deleted the fix-mismatched_lifetime_syntaxes branch August 15, 2025 18:11
atuchin-m added a commit that referenced this pull request Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants