Skip to content

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
suharev7 committed Aug 23, 2021
1 parent 68d9e55 commit 1be33ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ byteorder = "^1.3"
chrono-tz = "0.5"
crossbeam = "0.8.0"
thiserror = "1.0.20"
futures-core = "0.3.5"
futures-sink = "0.3.5"
futures-core = "0.3.16"
futures-sink = "0.3.16"
hostname = "^0.3"
lazy_static = "1.4.0"
lz4 = "1.23.2"
pin-project = "1.0.4"
pin-project = "1.0.8"
url="^2"
uuid = "0.8.1"
combine = "4.2.3"

[dependencies.futures-util]
version = "0.3.12"
version = "0.3.16"
features = ["sink"]

[dependencies.tokio]
version = "1.5"
version = "1.10"
default-features = false
features = ["io-util", "time", "net", "sync", "rt-multi-thread"]
optional = true
Expand Down Expand Up @@ -70,10 +70,10 @@ default-features = false
features = [ "std" ]

[dev-dependencies]
env_logger = "^0.8"
env_logger = "^0.9"
rand = "^0.8"

[dev-dependencies.tokio]
version = "1.5"
version = "1.10"
default-features = false
features = ["macros"]
11 changes: 3 additions & 8 deletions src/types/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,7 @@ impl convert::From<Uuid> for Value {

impl convert::From<bool> for Value {
fn from(v: bool) -> Value {
match v {
true => Value::UInt8(1_u8),
false => Value::UInt8(0_u8),
}
Value::UInt8(if v {1} else {0})
}
}

Expand Down Expand Up @@ -558,10 +555,8 @@ mod test {

#[test]
fn test_boolean() {
let f = false;
let t = true;
let v = Value::from(f);
let w = Value::from(t);
let v = Value::from(false);
let w = Value::from(true);
assert_eq!(v, Value::UInt8(0));
assert_eq!(w, Value::UInt8(1));
}
Expand Down

0 comments on commit 1be33ab

Please sign in to comment.