summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2021-12-09 13:58:03 +0100
committerDavid Lönnhager <david.l@mullvad.net>2021-12-14 09:45:23 +0100
commit3b92b6ae9230719eca8ef8fef511b71152896efd (patch)
tree87af8e61e7b84bf61fe7cca1cd59f5a6cbd34de5
parente47011f2226c6b5976a6937caa9f86ded992e764 (diff)
downloadmullvadvpn-3b92b6ae9230719eca8ef8fef511b71152896efd.tar.xz
mullvadvpn-3b92b6ae9230719eca8ef8fef511b71152896efd.zip
Fix some cargo doc warnings
-rw-r--r--mullvad-rpc/src/address_cache.rs2
-rw-r--r--mullvad-rpc/src/relay_list.rs2
-rw-r--r--talpid-core/src/routing/unix.rs4
-rw-r--r--talpid-dbus/src/network_manager.rs2
-rw-r--r--talpid-types/src/lib.rs2
-rw-r--r--talpid-types/src/net/wireguard.rs2
6 files changed, 7 insertions, 7 deletions
diff --git a/mullvad-rpc/src/address_cache.rs b/mullvad-rpc/src/address_cache.rs
index 455bc09e83..8c7160a7f0 100644
--- a/mullvad-rpc/src/address_cache.rs
+++ b/mullvad-rpc/src/address_cache.rs
@@ -76,7 +76,7 @@ impl AddressCache {
}
/// Returns the current address without registering it as "tried"
- /// in [`has_tried_current_address`].
+ /// in [Self::has_tried_current_address].
pub fn peek_address(&self) -> SocketAddr {
let inner = self.inner.lock().unwrap();
Self::get_address_inner(&inner)
diff --git a/mullvad-rpc/src/relay_list.rs b/mullvad-rpc/src/relay_list.rs
index 8af998fe39..25b96d6b61 100644
--- a/mullvad-rpc/src/relay_list.rs
+++ b/mullvad-rpc/src/relay_list.rs
@@ -12,7 +12,7 @@ use std::{
time::Duration,
};
-/// Fetches relay list from https://api.mullvad.net/v1/relays
+/// Fetches relay list from <https://api.mullvad.net/v1/relays>
#[derive(Clone)]
pub struct RelayListProxy {
handle: rest::MullvadRestHandle,
diff --git a/talpid-core/src/routing/unix.rs b/talpid-core/src/routing/unix.rs
index aa1cf66f6b..8ec1de888b 100644
--- a/talpid-core/src/routing/unix.rs
+++ b/talpid-core/src/routing/unix.rs
@@ -86,7 +86,7 @@ impl RouteManagerHandle {
.map_err(Error::PlatformError)
}
- /// Remove any routing rules created by [`create_routing_rules`].
+ /// Remove any routing rules created by [Self::create_routing_rules].
#[cfg(target_os = "linux")]
pub async fn clear_routing_rules(&self) -> Result<(), Error> {
let (response_tx, response_rx) = oneshot::channel();
@@ -242,7 +242,7 @@ impl RouteManager {
self.handle()?.create_routing_rules(enable_ipv6).await
}
- /// Remove any routing rules created by [`create_routing_rules`].
+ /// Remove any routing rules created by [Self::create_routing_rules].
#[cfg(target_os = "linux")]
pub async fn clear_routing_rules(&mut self) -> Result<(), Error> {
self.handle()?.clear_routing_rules().await
diff --git a/talpid-dbus/src/network_manager.rs b/talpid-dbus/src/network_manager.rs
index 55c28e65f1..6ad68c364d 100644
--- a/talpid-dbus/src/network_manager.rs
+++ b/talpid-dbus/src/network_manager.rs
@@ -345,7 +345,7 @@ impl NetworkManager {
/// previous state. Returns true only if the connectivity check was enabled and is now
/// disabled. Disabling the connectivity check should be done before a firewall is applied
/// due to the fact that blocking DNS requests can make it hang:
- /// https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/404
+ /// <https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/404>
pub fn disable_connectivity_check(&self) -> Option<bool> {
let nm_manager = self.nm_manager();
match nm_manager.get(NM_MANAGER, CONNECTIVITY_CHECK_KEY) {
diff --git a/talpid-types/src/lib.rs b/talpid-types/src/lib.rs
index 8ca4d2ed61..835077855b 100644
--- a/talpid-types/src/lib.rs
+++ b/talpid-types/src/lib.rs
@@ -15,7 +15,7 @@ pub trait ErrorExt {
/// Creates a string representation of the entire error chain.
fn display_chain(&self) -> String;
- /// Like [`display_chain`] but with an extra message at the start of the chain
+ /// Like [Self::display_chain] but with an extra message at the start of the chain
fn display_chain_with_msg(&self, msg: &str) -> String;
}
diff --git a/talpid-types/src/net/wireguard.rs b/talpid-types/src/net/wireguard.rs
index fb808ced47..8219d772ec 100644
--- a/talpid-types/src/net/wireguard.rs
+++ b/talpid-types/src/net/wireguard.rs
@@ -55,7 +55,7 @@ pub struct PeerConfig {
/// IP address of the WireGuard server.
pub endpoint: SocketAddr,
/// Transport protocol. WireGuard only supports UDP directly.
- /// If this is set to TCP, then traffic is proxied using [`udp_to_tcp::Udp2Tcp`].
+ /// If this is set to TCP, then traffic is proxied using [udp_over_tcp](https://github.com/mullvad/udp-over-tcp).
#[serde(default = "default_peer_transport")]
pub protocol: TransportProtocol,
}