Skip to content

Commit c212a6b

Browse files
committed
fmt
Signed-off-by: Ana Hobden <[email protected]>
1 parent 9e463ef commit c212a6b

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

examples/raw.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ fn main() -> Result<()> {
6262

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

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

9084
// Same thing when you want to retrieve multiple values.
9185
let keys = vec![Key::from("k1"), Key::from("k2")];

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ impl fmt::Debug for Value {
360360
Ok(s) => write!(f, "Value({:?})", s),
361361
Err(_) => write!(f, "Value({})", HexRepr(&self.0)),
362362
}
363-
364363
}
365364
}
366365

src/rpc/tikv/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ macro_rules! has_str_error {
136136
if self.get_error().is_empty() {
137137
None
138138
} else {
139-
Some(Error::kv_error(self.take_error()) )
139+
Some(Error::kv_error(self.take_error()))
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)