File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ temptree = "0.2.0"
7373[lints .clippy ]
7474all = { level = " deny" , priority = -1 }
7575float_cmp = " allow"
76+ ignore_without_reason = " allow"
7677large_enum_variant = " allow"
7778needless_pass_by_value = " allow"
7879pedantic = { level = " deny" , priority = -1 }
Original file line number Diff line number Diff line change @@ -251,7 +251,10 @@ impl Client {
251251 seeder. handle_msg ( & msg) . unwrap ( ) ;
252252
253253 let mut pieces = info_dict. len ( ) / extended:: UtMetadata :: PIECE_LENGTH ;
254- if info_dict. len ( ) % extended:: UtMetadata :: PIECE_LENGTH > 0 {
254+ if !info_dict
255+ . len ( )
256+ . is_multiple_of ( extended:: UtMetadata :: PIECE_LENGTH )
257+ {
255258 pieces += 1 ;
256259 }
257260
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ impl Extractor {
152152 return ;
153153 }
154154
155- if self . torrents % 10000 == 0 {
155+ if self . torrents . is_multiple_of ( 10000 ) {
156156 eprintln ! ( "Processing torrent {}..." , self . torrents) ;
157157 }
158158
You can’t perform that action at this time.
0 commit comments