File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ pub struct Configuration {
475475 /// peers from the torrent peer list.
476476 pub inactive_peer_cleanup_interval : u64 ,
477477 /// 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`
479479 /// seconds and it removes inactive peers. Eventually, the peer list of a
480480 /// torrent could be empty and the torrent will be removed if this option is
481481 /// enabled.
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub enum DatabaseDriver {
1919 // TODO: Move to the database crate once that gets its own crate.
2020 /// The Sqlite3 database driver.
2121 Sqlite3 ,
22- /// The MySQL database driver.
22+ /// The ` MySQL` database driver.
2323 MySQL ,
2424}
2525
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ pub fn ephemeral() -> Configuration {
5555 let temp_directory = env:: temp_dir ( ) ;
5656 let random_db_id = random:: string ( 16 ) ;
5757 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 ) ;
5959
6060 config
6161}
@@ -138,8 +138,8 @@ pub fn ephemeral_ipv6() -> Configuration {
138138
139139 let ipv6 = format ! ( "[::]:{}" , 0 ) ;
140140
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 ) ;
143143 cfg. udp_trackers [ 0 ] . bind_address = ipv6;
144144
145145 cfg
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub enum Error {
1313 source : LocatedError < ' static , dyn std:: error:: Error + Send + Sync > ,
1414 } ,
1515
16- /// Error returned from a third-party library (aquatic_udp_protocol).
16+ /// Error returned from a third-party library (` aquatic_udp_protocol` ).
1717 #[ error( "internal server error: {message}, {location}" ) ]
1818 InternalServer {
1919 location : & ' static Location < ' static > ,
You can’t perform that action at this time.
0 commit comments