From 83448a99aaf18c7a045a081c5de0c22bc4a83de1 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 27 Nov 2024 17:08:25 +0000 Subject: chore: bump rust-nosrt v0.37.0 use RelayUrl in repo_ref which I had resisted as it mutates relay urls when printed to append a slash --- test_utils/src/git.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test_utils/src/git.rs') diff --git a/test_utils/src/git.rs b/test_utils/src/git.rs index 2562799..474fc59 100644 --- a/test_utils/src/git.rs +++ b/test_utils/src/git.rs @@ -10,7 +10,7 @@ use std::{ use anyhow::{Context, Result}; use git2::{Branch, Oid, RepositoryInitOptions, Signature, Time}; use nostr::nips::nip01::Coordinate; -use nostr_sdk::{Kind, ToBech32}; +use nostr_sdk::{Kind, RelayUrl, ToBech32}; use crate::generate_repo_ref_event; @@ -28,8 +28,8 @@ impl Default for GitTestRepo { public_key: repo_event.pubkey, identifier: repo_event.tags.identifier().unwrap().to_string(), relays: vec![ - "ws://localhost:8055".to_string(), - "ws://localhost:8056".to_string(), + RelayUrl::parse("ws://localhost:8055").unwrap(), + RelayUrl::parse("ws://localhost:8056").unwrap(), ], }; -- cgit v1.2.3