Skip to content

Commit 23631fa

Browse files
committed
fix: build errors
1 parent 7a10e9c commit 23631fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ffi/proposal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type Proposal struct {
5555

5656
// Root retrieves the root hash of the proposal.
5757
func (p *Proposal) Root() Hash {
58-
return p.root,
58+
return p.root
5959
}
6060

6161
// Get retrieves the value for the given key.

firewood/src/db.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)