diff options
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) |