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/bin/git_remote_nostr/utils.rs | |
| 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/bin/git_remote_nostr/utils.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/utils.rs b/src/bin/git_remote_nostr/utils.rs index 5efb6e0..8e89652 100644 --- a/src/bin/git_remote_nostr/utils.rs +++ b/src/bin/git_remote_nostr/utils.rs | |||
| @@ -188,7 +188,7 @@ pub async fn get_all_proposals( | |||
| 188 | pub fn find_proposal_and_patches_by_branch_name<'a>( | 188 | pub fn find_proposal_and_patches_by_branch_name<'a>( |
| 189 | refstr: &'a str, | 189 | refstr: &'a str, |
| 190 | open_proposals: &'a HashMap<EventId, (Event, Vec<Event>)>, | 190 | open_proposals: &'a HashMap<EventId, (Event, Vec<Event>)>, |
| 191 | current_user: &Option<PublicKey>, | 191 | current_user: Option<&PublicKey>, |
| 192 | ) -> Option<(&'a EventId, &'a (Event, Vec<Event>))> { | 192 | ) -> Option<(&'a EventId, &'a (Event, Vec<Event>))> { |
| 193 | open_proposals.iter().find(|(_, (proposal, _))| { | 193 | open_proposals.iter().find(|(_, (proposal, _))| { |
| 194 | is_event_proposal_root_for_branch(proposal, refstr, current_user).unwrap_or(false) | 194 | is_event_proposal_root_for_branch(proposal, refstr, current_user).unwrap_or(false) |