File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ fn main() -> Result<()> {
62
62
63
63
// You can also set the `ColumnFamily` used by the request.
64
64
// 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" ) ;
69
66
println ! ( "Key: {:?} deleted" , Key :: from( KEY ) ) ;
70
67
71
68
// Here we check if the key has been deleted from the key-value store.
@@ -82,10 +79,7 @@ fn main() -> Result<()> {
82
79
KvPair :: from( ( "k2" , "v2" ) ) ,
83
80
KvPair :: from( ( "k3" , "v3" ) ) ,
84
81
] ;
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" ) ;
89
83
90
84
// Same thing when you want to retrieve multiple values.
91
85
let keys = vec ! [ Key :: from( "k1" ) , Key :: from( "k2" ) ] ;
Original file line number Diff line number Diff line change @@ -360,7 +360,6 @@ impl fmt::Debug for Value {
360
360
Ok ( s) => write ! ( f, "Value({:?})" , s) ,
361
361
Err ( _) => write ! ( f, "Value({})" , HexRepr ( & self . 0 ) ) ,
362
362
}
363
-
364
363
}
365
364
}
366
365
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ macro_rules! has_str_error {
136
136
if self . get_error( ) . is_empty( ) {
137
137
None
138
138
} else {
139
- Some ( Error :: kv_error( self . take_error( ) ) )
139
+ Some ( Error :: kv_error( self . take_error( ) ) )
140
140
}
141
141
}
142
142
}
You can’t perform that action at this time.
0 commit comments