Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nylar committed Jan 25, 2024
1 parent 8315d2f commit 61a5314
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fteepee-core/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ mod tests {
fn empty_struct_command() {
let mut output: [u8; 64] = [0; 64];

let cmd = Pasv::default();
let cmd = Pasv;

cmd.encode(&mut output);

Expand Down
4 changes: 2 additions & 2 deletions fteepee-sync/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Client<Disconnected> {
let resp = client.read_response()?;
expect_code!(resp.code()?, Code::READY);

let cmd = Feat::default();
let cmd = Feat;
client.write_request(&cmd)?;
let resp = client.read_response()?;
expect_code!(
Expand Down Expand Up @@ -148,7 +148,7 @@ impl Client<Connected> {
}

fn pasv(&mut self) -> Result<SocketAddr> {
let cmd = Pasv::default();
let cmd = Pasv;

self.write_request(&cmd)?;
let mut resp = self.read_response()?;
Expand Down
4 changes: 2 additions & 2 deletions fteepee-tokio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Client<Disconnected> {
let resp = client.read_response().await?;
expect_code!(resp.code()?, Code::READY);

let cmd = Feat::default();
let cmd = Feat;
client.write_request(&cmd).await?;
let resp = client.read_response().await?;
expect_code!(
Expand Down Expand Up @@ -151,7 +151,7 @@ impl Client<Connected> {
}

async fn pasv(&mut self) -> Result<SocketAddr> {
let cmd = Pasv::default();
let cmd = Pasv;

self.write_request(&cmd).await?;
let mut resp = self.read_response().await?;
Expand Down

0 comments on commit 61a5314

Please sign in to comment.