File tree 8 files changed +14
-14
lines changed
8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ impl Key {
196
196
197
197
/// Error returned when a key cannot be parsed from a string.
198
198
///
199
- /// ```rust,no_run
199
+ /// ```text
200
200
/// use torrust_tracker::core::auth::Key;
201
201
/// use std::str::FromStr;
202
202
///
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ pub enum Driver {
29
29
///
30
30
/// Example for `SQLite3`:
31
31
///
32
- /// ```rust,no_run
32
+ /// ```text
33
33
/// use torrust_tracker::core::databases;
34
34
/// use torrust_tracker::core::databases::driver::Driver;
35
35
///
@@ -40,7 +40,7 @@ pub enum Driver {
40
40
///
41
41
/// Example for `MySQL`:
42
42
///
43
- /// ```rust,no_run
43
+ /// ```text
44
44
/// use torrust_tracker::core::databases;
45
45
/// use torrust_tracker::core::databases::driver::Driver;
46
46
///
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ impl Query {
30
30
/// It return `Some(value)` for a URL query param if the param with the
31
31
/// input `name` exists. For example:
32
32
///
33
- /// ```rust
33
+ /// ```text
34
34
/// use torrust_tracker::servers::http::v1::query::Query;
35
35
///
36
36
/// let raw_query = "param1=value1¶m2=value2";
@@ -43,7 +43,7 @@ impl Query {
43
43
///
44
44
/// It returns only the first param value even if it has multiple values:
45
45
///
46
- /// ```rust
46
+ /// ```text
47
47
/// use torrust_tracker::servers::http::v1::query::Query;
48
48
///
49
49
/// let raw_query = "param1=value1¶m1=value2";
@@ -59,7 +59,7 @@ impl Query {
59
59
60
60
/// Returns all the param values as a vector.
61
61
///
62
- /// ```rust
62
+ /// ```text
63
63
/// use torrust_tracker::servers::http::v1::query::Query;
64
64
///
65
65
/// let query = "param1=value1¶m1=value2".parse::<Query>().unwrap();
@@ -72,7 +72,7 @@ impl Query {
72
72
///
73
73
/// Returns all the param values as a vector even if it has only one value.
74
74
///
75
- /// ```rust
75
+ /// ```text
76
76
/// use torrust_tracker::servers::http::v1::query::Query;
77
77
///
78
78
/// let query = "param1=value1".parse::<Query>().unwrap();
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const NUMWANT: &str = "numwant";
29
29
/// The `Announce` request. Fields use the domain types after parsing the
30
30
/// query params of the request.
31
31
///
32
- /// ```rust
32
+ /// ```text
33
33
/// use aquatic_udp_protocol::{NumberOfBytes, PeerId};
34
34
/// use torrust_tracker::servers::http::v1::requests::announce::{Announce, Compact, Event};
35
35
/// use bittorrent_primitives::info_hash::InfoHash;
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl Into<Vec<u8>> for Compact {
152
152
153
153
/// A [`NormalPeer`], for the [`Normal`] form.
154
154
///
155
- /// ```rust
155
+ /// ```text
156
156
/// use std::net::{IpAddr, Ipv4Addr};
157
157
/// use torrust_tracker::servers::http::v1::responses::announce::{Normal, NormalPeer};
158
158
///
@@ -204,7 +204,7 @@ impl From<&NormalPeer> for BencodeMut<'_> {
204
204
/// A part from reducing the size of the response, this format does not contain
205
205
/// the peer's ID.
206
206
///
207
- /// ```rust
207
+ /// ```text
208
208
/// use std::net::{IpAddr, Ipv4Addr};
209
209
/// use torrust_tracker::servers::http::v1::responses::announce::{Compact, CompactPeer, CompactPeerData};
210
210
///
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ pub struct Error {
26
26
impl Error {
27
27
/// Returns the bencoded representation of the `Error` struct.
28
28
///
29
- /// ```rust
29
+ /// ```text
30
30
/// use torrust_tracker::servers::http::v1::responses::error::Error;
31
31
///
32
32
/// let err = Error {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use crate::core::ScrapeData;
11
11
12
12
/// The `Scrape` response for the HTTP tracker.
13
13
///
14
- /// ```rust
14
+ /// ```text
15
15
/// use torrust_tracker::servers::http::v1::responses::scrape::Bencoded;
16
16
/// use bittorrent_primitives::info_hash::InfoHash;
17
17
/// use torrust_tracker_primitives::swarm_metadata::SwarmMetadata;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub enum PeerIpResolutionError {
59
59
///
60
60
/// With the tracker running on reverse proxy mode:
61
61
///
62
- /// ```rust
62
+ /// ```text
63
63
/// use std::net::IpAddr;
64
64
/// use std::str::FromStr;
65
65
///
@@ -81,7 +81,7 @@ pub enum PeerIpResolutionError {
81
81
///
82
82
/// With the tracker non running on reverse proxy mode:
83
83
///
84
- /// ```rust
84
+ /// ```text
85
85
/// use std::net::IpAddr;
86
86
/// use std::str::FromStr;
87
87
///
You can’t perform that action at this time.
0 commit comments