Update pocket-db/pocket-types

This commit is contained in:
Mike Dilger 2025-02-11 08:32:00 +13:00
parent 8ab043698f
commit 99124ba134
No known key found for this signature in database
GPG Key ID: 47581A78D4329BA4
2 changed files with 6 additions and 6 deletions

4
Cargo.lock generated
View File

@ -1281,7 +1281,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pocket-db"
version = "0.1.0"
source = "git+https://github.com/mikedilger/pocket?branch=master#16a27ec6d8b4b294bae943a57fc525389e446489"
source = "git+https://github.com/mikedilger/pocket?branch=master#e6d55e205cc140cc04728960c2ca4e6e906808ef"
dependencies = [
"heed",
"libc",
@ -1292,7 +1292,7 @@ dependencies = [
[[package]]
name = "pocket-types"
version = "0.1.0"
source = "git+https://github.com/mikedilger/pocket?branch=master#16a27ec6d8b4b294bae943a57fc525389e446489"
source = "git+https://github.com/mikedilger/pocket?branch=master#e6d55e205cc140cc04728960c2ca4e6e906808ef"
dependencies = [
"derive_more",
"secp256k1 0.28.2",

View File

@ -130,7 +130,7 @@ pub fn handle_inner(command: Value) -> Result<Option<Value>, Error> {
if *appr {
None
} else {
Some(pk.as_hex_string().unwrap())
Some(pk.as_hex_string())
}
})
.collect();
@ -144,7 +144,7 @@ pub fn handle_inner(command: Value) -> Result<Option<Value>, Error> {
.iter()
.filter_map(|(pk, appr)| {
if *appr {
Some(pk.as_hex_string().unwrap())
Some(pk.as_hex_string())
} else {
None
}
@ -173,7 +173,7 @@ pub fn handle_inner(command: Value) -> Result<Option<Value>, Error> {
if *appr {
None
} else {
Some(id.as_hex_string().unwrap())
Some(id.as_hex_string())
}
})
.collect();
@ -187,7 +187,7 @@ pub fn handle_inner(command: Value) -> Result<Option<Value>, Error> {
.iter()
.filter_map(|(id, appr)| {
if *appr {
Some(id.as_hex_string().unwrap())
Some(id.as_hex_string())
} else {
None
}