diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-16 07:58:54 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-16 08:55:50 +0000 |
| commit | 5fe839e2bf8ceb2931c1984efb2d956980431203 (patch) | |
| tree | b8091597db6999ec2de65ac2dd091611a37354ba /src/lib | |
| parent | 40463a9073df4033622066bd0c548e1549e0a953 (diff) | |
chore: nix flake update
update nix dependancies to latest version using default update options
fix warning related to idomatic patterns
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/git_events.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/git_events.rs b/src/lib/git_events.rs index 17fae8c..d8564ae 100644 --- a/src/lib/git_events.rs +++ b/src/lib/git_events.rs | |||
| @@ -619,11 +619,11 @@ fn get_event_parent_id(event: &nostr::Event) -> Result<String> { | |||
| 619 | pub fn is_event_proposal_root_for_branch( | 619 | pub fn is_event_proposal_root_for_branch( |
| 620 | e: &Event, | 620 | e: &Event, |
| 621 | branch_name_or_refstr: &str, | 621 | branch_name_or_refstr: &str, |
| 622 | logged_in_user: &Option<PublicKey>, | 622 | logged_in_user: Option<&PublicKey>, |
| 623 | ) -> Result<bool> { | 623 | ) -> Result<bool> { |
| 624 | let branch_name = branch_name_or_refstr.replace("refs/heads/", ""); | 624 | let branch_name = branch_name_or_refstr.replace("refs/heads/", ""); |
| 625 | Ok(event_to_cover_letter(e).is_ok_and(|cl| { | 625 | Ok(event_to_cover_letter(e).is_ok_and(|cl| { |
| 626 | (logged_in_user.is_some_and(|public_key| e.pubkey.eq(&public_key)) | 626 | (logged_in_user.is_some_and(|public_key| e.pubkey.eq(public_key)) |
| 627 | && (branch_name.eq(&format!("pr/{}", cl.branch_name)) | 627 | && (branch_name.eq(&format!("pr/{}", cl.branch_name)) |
| 628 | || cl.branch_name.eq(&branch_name))) | 628 | || cl.branch_name.eq(&branch_name))) |
| 629 | || cl.get_branch_name().is_ok_and(|s| s.eq(&branch_name)) | 629 | || cl.get_branch_name().is_ok_and(|s| s.eq(&branch_name)) |