diff --git a/extensions/warp-ipfs/src/config.rs b/extensions/warp-ipfs/src/config.rs index 567e44657..827652675 100644 --- a/extensions/warp-ipfs/src/config.rs +++ b/extensions/warp-ipfs/src/config.rs @@ -90,7 +90,7 @@ impl Default for RelayClient { #[cfg(target_arch="wasm32")] relay_address: vec![ //NYC-1 - "/dns4/nyc-3-dev.relay.satellite.im/tcp/4410/wss/p2p/12D3KooWKmRupXFyBqJtm6FAySPe6Krmi6v5i6SsQ96NMZ9J4Nns".parse().unwrap(), + "/dns4/nyc-3-dev.relay.satellite.im/tcp/4410/wss/p2p/12D3KooWJWw4KG2KKpUxQAc8kZZDqmownRvjWGxnr5Y6XRur8WSx".parse().unwrap(), ], background: true, quorum: Default::default() diff --git a/warp/src/constellation/directory.rs b/warp/src/constellation/directory.rs index 249e6ec92..83fd935b0 100644 --- a/warp/src/constellation/directory.rs +++ b/warp/src/constellation/directory.rs @@ -516,17 +516,17 @@ impl Directory { } let name = path.remove(0); let item = self.get_item(name)?; - return match item { + match item { Item::Directory(dir) => { if path.is_empty() { return Ok(dir); } - return Ok(dir + Ok(dir .get_last_directory_from_path(path.join("/").as_str()) - .unwrap_or(dir)); + .unwrap_or(dir)) } _ => Err(Error::DirectoryNotFound), - }; + } } /// Get an `Item` from a path @@ -558,15 +558,15 @@ impl Directory { } let name = path.remove(0); let item = self.get_item(name)?; - return match &item { + match &item { Item::Directory(dir) => { if path.is_empty() { return Ok(item); } - return dir.get_item_by_path(path.join("/").as_str()); + dir.get_item_by_path(path.join("/").as_str()) } _ => Ok(item), - }; + } } }