diff options
Diffstat (limited to 'src/repo_ref.rs')
| -rw-r--r-- | src/repo_ref.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/repo_ref.rs b/src/repo_ref.rs index df348a5..9bc3201 100644 --- a/src/repo_ref.rs +++ b/src/repo_ref.rs | |||
| @@ -178,6 +178,7 @@ impl RepoRef { | |||
| 178 | .await | 178 | .await |
| 179 | .context("failed to create repository reference event") | 179 | .context("failed to create repository reference event") |
| 180 | } | 180 | } |
| 181 | /// coordinates without relay hints | ||
| 181 | pub fn coordinates(&self) -> HashSet<Coordinate> { | 182 | pub fn coordinates(&self) -> HashSet<Coordinate> { |
| 182 | let mut res = HashSet::new(); | 183 | let mut res = HashSet::new(); |
| 183 | for m in &self.maintainers { | 184 | for m in &self.maintainers { |
| @@ -190,6 +191,7 @@ impl RepoRef { | |||
| 190 | } | 191 | } |
| 191 | res | 192 | res |
| 192 | } | 193 | } |
| 194 | /// coordinates without relay hints | ||
| 193 | pub fn coordinates_with_timestamps(&self) -> Vec<(Coordinate, Option<Timestamp>)> { | 195 | pub fn coordinates_with_timestamps(&self) -> Vec<(Coordinate, Option<Timestamp>)> { |
| 194 | self.coordinates() | 196 | self.coordinates() |
| 195 | .iter() | 197 | .iter() |