parazyd 3 лет назад
Родитель
Сommit
7346bac61a

+ 1 - 1
src/net/message_subscriber.rs

@@ -215,7 +215,7 @@ impl MessageSubsystem {
     }
 
     /// Subscribes to a [`Message`]. Using the Message name, the method
-    /// returns the associated [`MessageDispatcher`] from the list of
+    /// returns the associated `MessageDispatcher` from the list of
     /// dispatchers and calls `subscribe()`.
     pub async fn subscribe<M: Message>(&self) -> Result<MessageSubscription<M>> {
         let dispatcher = self.dispatchers.lock().await.get(M::NAME).cloned();

+ 2 - 2
src/net/mod.rs

@@ -20,7 +20,7 @@
 /// common network messages that are sent between nodes as described
 /// by the [`protocol`] submodule.
 ///
-/// Implements a type called [`Packet`] which is the base message type.
+/// Implements a type called `Packet` which is the base message type.
 /// Packets are converted into messages and passed to an event loop.
 pub mod message;
 pub use message::Message;
@@ -99,7 +99,7 @@ pub use protocol::{
 /// incoming connection, and an outbound session, which describes setting
 /// up an outbound connection. Also describes the sesd session, which is
 /// the type of connection used when a node connects to the network for
-/// the first time. Implements the [`Session`] trait which describes the
+/// the first time. Implements the `Session` trait which describes the
 /// common functions across all sessions.
 pub mod session;
 pub use session::SESSION_ALL;

+ 1 - 1
src/net/session/outbound_session.rs

@@ -390,7 +390,7 @@ impl OutboundSession {
     /// connected P2P channels and send out a `GetAddrs` message to request more
     /// peers. Other parts of the P2P stack will then handle the incoming addresses
     /// and place them in the hosts list.
-    /// This function will also sleep [`Settings:outbound_connect_timeout`] seconds
+    /// This function will also sleep `Settings::outbound_connect_timeout` seconds
     /// after broadcasting in order to let the P2P stack receive and work through
     /// the addresses it is expecting.
     async fn peer_discovery(&self, slot_number: usize) {

+ 1 - 1
src/serial/derive-internal/src/lib.rs

@@ -37,7 +37,7 @@ struct VariantParts {
 }
 
 /// Calculates the discriminant that will be assigned by the compiler.
-/// See: https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values
+/// See: <https://doc.rust-lang.org/reference/items/enumerations.html#assigning-discriminant-values>
 fn discriminant_map(variants: &Punctuated<Variant, Comma>) -> HashMap<Ident, TokenStream> {
     let mut map = HashMap::new();