nostrdb-rs

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

commit 830bc47e529df178337106945d74dbb961b841cb
parent 4d3bfb6f6f436b2e8b661e241cffbcd2eebb2924
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  3 Aug 2024 14:27:41 -0700

run rustfmt

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/ndb.rs | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/ndb.rs b/src/ndb.rs @@ -112,15 +112,11 @@ impl Ndb { } pub fn subscription_count(&self) -> u32 { - unsafe { - bindings::ndb_num_subscriptions(self.as_ptr()) as u32 - } + unsafe { bindings::ndb_num_subscriptions(self.as_ptr()) as u32 } } pub fn unsubscribe(&self, sub_id: u64) -> Result<()> { - let r = unsafe { - bindings::ndb_unsubscribe(self.as_ptr(), sub_id) - }; + let r = unsafe { bindings::ndb_unsubscribe(self.as_ptr(), sub_id) }; if r == 0 { Err(Error::SubscriptionError)