File tree 4 files changed +6
-6
lines changed
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ pub struct Configuration {
475
475
/// peers from the torrent peer list.
476
476
pub inactive_peer_cleanup_interval : u64 ,
477
477
/// If enabled, the tracker will remove torrents that have no peers.
478
- /// THe clean up torrent job runs every `inactive_peer_cleanup_interval`
478
+ /// The clean up torrent job runs every `inactive_peer_cleanup_interval`
479
479
/// seconds and it removes inactive peers. Eventually, the peer list of a
480
480
/// torrent could be empty and the torrent will be removed if this option is
481
481
/// enabled.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub enum DatabaseDriver {
19
19
// TODO: Move to the database crate once that gets its own crate.
20
20
/// The Sqlite3 database driver.
21
21
Sqlite3 ,
22
- /// The MySQL database driver.
22
+ /// The ` MySQL` database driver.
23
23
MySQL ,
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub fn ephemeral() -> Configuration {
55
55
let temp_directory = env:: temp_dir ( ) ;
56
56
let random_db_id = random:: string ( 16 ) ;
57
57
let temp_file = temp_directory. join ( format ! ( "data_{random_db_id}.db" ) ) ;
58
- config . db_path = temp_file. to_str ( ) . unwrap ( ) . to_owned ( ) ;
58
+ temp_file. to_str ( ) . unwrap ( ) . clone_into ( & mut config . db_path ) ;
59
59
60
60
config
61
61
}
@@ -138,8 +138,8 @@ pub fn ephemeral_ipv6() -> Configuration {
138
138
139
139
let ipv6 = format ! ( "[::]:{}" , 0 ) ;
140
140
141
- cfg. http_api . bind_address = ipv6 . clone ( ) ;
142
- cfg. http_trackers [ 0 ] . bind_address = ipv6 . clone ( ) ;
141
+ cfg. http_api . bind_address . clone_from ( & ipv6 ) ;
142
+ cfg. http_trackers [ 0 ] . bind_address . clone_from ( & ipv6 ) ;
143
143
cfg. udp_trackers [ 0 ] . bind_address = ipv6;
144
144
145
145
cfg
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub enum Error {
13
13
source : LocatedError < ' static , dyn std:: error:: Error + Send + Sync > ,
14
14
} ,
15
15
16
- /// Error returned from a third-party library (aquatic_udp_protocol).
16
+ /// Error returned from a third-party library (` aquatic_udp_protocol` ).
17
17
#[ error( "internal server error: {message}, {location}" ) ]
18
18
InternalServer {
19
19
location : & ' static Location < ' static > ,
You can’t perform that action at this time.
0 commit comments