File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ type Proposal struct {
5555
5656// Root retrieves the root hash of the proposal.
5757func (p * Proposal ) Root () Hash {
58- return p .root ,
58+ return p .root
5959}
6060
6161// Get retrieves the value for the given key.
Original file line number Diff line number Diff line change @@ -1347,7 +1347,7 @@ mod test {
13471347 value: format!( "value{i}" ) . as_bytes( ) . to_vec( ) ,
13481348 } ] ;
13491349 let proposal = db. propose ( batch) . unwrap ( ) ;
1350- let root_hash = proposal. root_hash ( ) . unwrap ( ) . unwrap ( ) ;
1350+ let root_hash = proposal. root_hash ( ) . unwrap ( ) ;
13511351 proposal. commit ( ) . unwrap ( ) ;
13521352 root_hash
13531353 } )
@@ -1381,7 +1381,7 @@ mod test {
13811381 let value = b"bar" ;
13821382 let batch = vec ! [ BatchOp :: Put { key, value } ] ;
13831383 let proposal = db. propose ( batch) . unwrap ( ) ;
1384- let root_hash = proposal. root_hash ( ) . unwrap ( ) . unwrap ( ) ;
1384+ let root_hash = proposal. root_hash ( ) . unwrap ( ) ;
13851385
13861386 proposal. commit ( ) . unwrap ( ) ;
13871387 let db = db. reopen ( ) ;
You can’t perform that action at this time.
0 commit comments