Skip to content

Commit

Permalink
removed unused fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasperav committed Jun 1, 2020
1 parent 8c46230 commit 93392e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ rand = "0.4.1"
snap = "0.2.3"
time = "0.1.38"
uuid = "0.8.1"
serde = "1.0.*"
webpki = { version = "0.21", optional = true }

[dependencies.rustls]
Expand All @@ -46,7 +47,7 @@ default-features = false
env_logger = "0.4.3"
maplit = "1.0.0"
regex = "0.2.5"
cdrs_helpers_derive = { git = "hhttps://github.com/Jasperav/cdrs-helpers-derive.git" }
cdrs_helpers_derive = { git = "https://github.com/Jasperav/cdrs-helpers-derive.git" }

[[example]]
name = "dynamic_cluster"
Expand Down
10 changes: 5 additions & 5 deletions src/types/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ impl<T: Into<Bytes>> From<T> for Value {
}
}

impl<T: Into<Bytes>> From<Option<T>> for Value {
fn from(b: Option<T>) -> Value {
match b {
Some(b) => Value::new_normal(b.into()),
None => Value::new_null(),
impl <T: serde::Serialize + Into<Bytes>> Into<Bytes> for Option<T> {
fn into(self) -> Bytes {
match self {
None => "".to_string().into(),
Some(t) => t.into(),
}
}
}
Expand Down

0 comments on commit 93392e5

Please sign in to comment.