Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
nacardin committed Nov 26, 2020
1 parent 98ca34d commit 28359ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
14 changes: 4 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,4 @@
members = [
"crates/socket",
"crates/service"
]

[patch.crates-io]
fluvio-future = { path = "../future-aio" }
]
2 changes: 1 addition & 1 deletion crates/socket/src/multiplexing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ where
use std::env;

let var_value = env::var("car").unwrap_or_default();
let wait_time: u64 = var_value.parse().unwrap_or_else(|_| 10);
let wait_time: u64 = var_value.parse().unwrap_or(10);
wait_time
});

Expand Down
2 changes: 1 addition & 1 deletion crates/socket/src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ where
self.get_mut_tcp_sink().send(bytes).await?;
}
StoreValue::FileSlice(f_slice) => {
if f_slice.len() == 0 {
if f_slice.is_empty() {
debug!("empty slice, skipping");
} else {
debug!(
Expand Down

0 comments on commit 28359ea

Please sign in to comment.