nostrdb-rs

nostrdb in rust!
git clone git://jb55.com/nostrdb-rs
Log | Files | Refs | Submodules | README | LICENSE

commit cbcd6016810aebee98fe999f6cd7aca6d75083bb
parent e4eb36050df3050def6854381bb065634652da81
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 30 Dec 2023 21:00:03 -0800

fix warnings

Diffstat:
Msrc/block.rs | 2+-
Msrc/ndb.rs | 2+-
Msrc/profile.rs | 1-
3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/block.rs b/src/block.rs @@ -196,7 +196,7 @@ mod tests { let db = "target/testdbs/note_blocks"; { - let mut ndb = Ndb::new(db, &Config::new()).expect("ndb"); + let ndb = Ndb::new(db, &Config::new()).expect("ndb"); ndb.process_event("[\"EVENT\",\"s\",{\"id\":\"d28ac02e277c3cf2744b562a414fd92d5fea554a737901364735bfe74577f304\",\"pubkey\":\"b5b1b5d2914daa2eda99af22ae828effe98730bf69dcca000fa37bfb9e395e32\",\"created_at\": 1703989205,\"kind\": 1,\"tags\": [],\"content\": \"#hashtags, are neat nostr:nprofile1qqsr9cvzwc652r4m83d86ykplrnm9dg5gwdvzzn8ameanlvut35wy3gpz3mhxue69uhhyetvv9ujuerpd46hxtnfduyu75sw https://github.com/damus-io\",\"sig\": \"07af3062616a17ef392769cadb170ac855c817c103e007c72374499bbadb2fe8917a0cc5b3fdc5aa5d56de086e128b3aeaa8868f6fe42a409767241b6a29cc94\"}]").expect("process ok"); } diff --git a/src/ndb.rs b/src/ndb.rs @@ -191,7 +191,7 @@ mod tests { let db = "target/testdbs/event_works"; { - let mut ndb = Ndb::new(db, &Config::new()).expect("ndb"); + let ndb = Ndb::new(db, &Config::new()).expect("ndb"); ndb.process_event(r#"["EVENT","s",{"id": "702555e52e82cc24ad517ba78c21879f6e47a7c0692b9b20df147916ae8731a3","pubkey": "32bf915904bfde2d136ba45dde32c88f4aca863783999faea2e847a8fafd2f15","created_at": 1702675561,"kind": 1,"tags": [],"content": "hello, world","sig": "2275c5f5417abfd644b7bc74f0388d70feb5d08b6f90fa18655dda5c95d013bfbc5258ea77c05b7e40e0ee51d8a2efa931dc7a0ec1db4c0a94519762c6625675"}]"#).expect("process ok"); } diff --git a/src/profile.rs b/src/profile.rs @@ -33,7 +33,6 @@ mod tests { #[test] fn profile_record_words() { use crate::config::Config; - use crate::error::Error; use crate::ndb::Ndb; use crate::test_util;