nostrdb-rs

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

commit cbcc4dfc49d81a1e88a5b2f572fef0ed582e0ef0
parent e6c619374faf3c20b5b33a3887d76b9db338de69
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 30 Dec 2023 20:59:03 -0800

remove some print statements

Diffstat:
Msrc/block.rs | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/block.rs b/src/block.rs @@ -65,8 +65,7 @@ impl<'a> Block<'a> { pub fn blocktype(&self) -> BlockType { let typ = unsafe { bindings::ndb_get_block_type(self.as_ptr()) }; - println!("type {}", typ); - let r = match typ { + match typ { 1 => BlockType::Hashtag, 2 => BlockType::Text, 3 => BlockType::MentionIndex, @@ -74,9 +73,7 @@ impl<'a> Block<'a> { 5 => BlockType::Url, 6 => BlockType::Invoice, _ => panic!("Invalid blocktype {}", typ), - }; - println!("typer {:?}", r); - r + } } }