Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Ana Hobden <operator@hoverbear.org>
  • Loading branch information
Hoverbear committed Feb 25, 2019
1 parent 9e463ef commit c212a6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
10 changes: 2 additions & 8 deletions examples/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ fn main() -> Result<()> {

// You can also set the `ColumnFamily` used by the request.
// This is *advanced usage* and should have some special considerations.
client
.delete(KEY)
.wait()
.expect("Could not delete value");
client.delete(KEY).wait().expect("Could not delete value");
println!("Key: {:?} deleted", Key::from(KEY));

// Here we check if the key has been deleted from the key-value store.
Expand All @@ -82,10 +79,7 @@ fn main() -> Result<()> {
KvPair::from(("k2", "v2")),
KvPair::from(("k3", "v3")),
];
client
.batch_put(pairs)
.wait()
.expect("Could not put pairs");
client.batch_put(pairs).wait().expect("Could not put pairs");

// Same thing when you want to retrieve multiple values.
let keys = vec![Key::from("k1"), Key::from("k2")];
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ impl fmt::Debug for Value {
Ok(s) => write!(f, "Value({:?})", s),
Err(_) => write!(f, "Value({})", HexRepr(&self.0)),
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion src/rpc/tikv/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ macro_rules! has_str_error {
if self.get_error().is_empty() {
None
} else {
Some(Error::kv_error(self.take_error()) )
Some(Error::kv_error(self.take_error()))
}
}
}
Expand Down

0 comments on commit c212a6b

Please sign in to comment.