diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-10-28 15:41:14 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-10-28 15:41:14 +0000 |
| commit | ae87aedae9696f4c855ac3dc47e61faec9d07c15 (patch) | |
| tree | 0309be588a4e3d3a510e7510300629cb2ec3a68a /src/lib/repo_state.rs | |
| parent | 5979e13cdc65ea78894dbcab3acde11b246889a7 (diff) | |
chore: bump rust-nostr to patch near v0.36.0
bump all rust-nostr packages
refactoring code based on breaking changes
upgrading to patched version to address signer issue:
nostr:nevent1qvzqqqqqqypzq6xcz9jerqgqkldy8lpg7lglcyj4g3nwzy2cs6u70wejdaj7csnjqy88wumn8ghj7mn0wvhxcmmv9uqzpsw5ph8le2n2kh6uchftawt74hddazk9tp7wjmz967y2l0uva5rc7hsstq
Diffstat (limited to 'src/lib/repo_state.rs')
| -rw-r--r-- | src/lib/repo_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/repo_state.rs b/src/lib/repo_state.rs index c39db34..c3a7606 100644 --- a/src/lib/repo_state.rs +++ b/src/lib/repo_state.rs | |||
| @@ -14,7 +14,7 @@ impl RepoState { | |||
| 14 | state_events.sort_by_key(|e| e.created_at); | 14 | state_events.sort_by_key(|e| e.created_at); |
| 15 | let event = state_events.first().context("no state events")?; | 15 | let event = state_events.first().context("no state events")?; |
| 16 | let mut state = HashMap::new(); | 16 | let mut state = HashMap::new(); |
| 17 | for tag in &event.tags { | 17 | for tag in event.tags.iter() { |
| 18 | if let Some(name) = tag.as_slice().first() { | 18 | if let Some(name) = tag.as_slice().first() { |
| 19 | if ["refs/heads/", "refs/tags", "HEAD"] | 19 | if ["refs/heads/", "refs/tags", "HEAD"] |
| 20 | .iter() | 20 | .iter() |
| @@ -30,6 +30,7 @@ impl RepoState { | |||
| 30 | } | 30 | } |
| 31 | Ok(RepoState { | 31 | Ok(RepoState { |
| 32 | identifier: event | 32 | identifier: event |
| 33 | .tags | ||
| 33 | .identifier() | 34 | .identifier() |
| 34 | .context("existing event must have an identifier")? | 35 | .context("existing event must have an identifier")? |
| 35 | .to_string(), | 36 | .to_string(), |