File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3737 - uses : actions/checkout@v6
3838 - uses : dtolnay/rust-toolchain@master
3939 with :
40- toolchain : 1.75 .0
40+ toolchain : 1.83 .0
4141 - run : cargo check --all-features --bins
4242
4343 lint :
Original file line number Diff line number Diff line change 22name = " oxish"
33version = " 0.1.0"
44edition = " 2021"
5- rust-version = " 1.75 "
5+ rust-version = " 1.83 "
66license = " Apache-2.0 OR MIT"
77
88[dependencies ]
Original file line number Diff line number Diff line change 1- use std:: { io, net:: SocketAddr , str} ;
1+ use core:: net:: SocketAddr ;
2+ use std:: { io, str} ;
23
34use aws_lc_rs:: digest;
45use thiserror:: Error ;
Original file line number Diff line number Diff line change 1- use std :: net:: { Ipv4Addr , SocketAddr } ;
1+ use core :: net:: { Ipv4Addr , SocketAddr } ;
22
33use clap:: Parser ;
44use listenfd:: ListenFd ;
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ impl<'a> PacketBuilderWithPayload<'a> {
177177 }
178178
179179 let padding_start = buf. len ( ) ;
180- buf. extend ( iter:: repeat ( 0 ) . take ( padding_len) ) ; // padding
180+ buf. extend ( iter:: repeat_n ( 0 , padding_len) ) ; // padding
181181 if let Some ( padding) = buf. get_mut ( padding_start..) {
182182 if rand:: fill ( padding) . is_err ( ) {
183183 return Err ( Error :: Unreachable ( "failed to get random padding" ) ) ;
You can’t perform that action at this time.
0 commit comments