nostrdb-rs

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

commit 2b2e5e43c019b80b98f1db6a03a1b88ca699bfa3
parent 158357919632f83991f40089f08cd6b16ff13269
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 24 Jul 2025 12:07:55 -0700

fix lint issues

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

Diffstat:
Mbuild.rs | 2+-
Mshell.nix | 2+-
Msrc/block.rs | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/build.rs b/build.rs @@ -120,7 +120,7 @@ fn main() { // Re-run the build script if any of the C files or headers change for file in &["nostrdb/src/nostrdb.c", "nostrdb/src/nostrdb.h"] { - println!("cargo:rerun-if-changed={}", file); + println!("cargo:rerun-if-changed={file}"); } // Link Security framework on macOS diff --git a/shell.nix b/shell.nix @@ -1,7 +1,7 @@ { pkgs ? import <nixpkgs> {} }: with pkgs; mkShell { - nativeBuildInputs = [ rustPlatform.bindgenHook cargo clippy rustc rustfmt libiconv pkg-config valgrind gdb ]; + nativeBuildInputs = [ rustPlatform.bindgenHook rustup libiconv pkg-config valgrind gdb ]; LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib"; } diff --git a/src/block.rs b/src/block.rs @@ -207,7 +207,7 @@ impl<'a> Block<'a> { 4 => BlockType::MentionBech32, 5 => BlockType::Url, 6 => BlockType::Invoice, - _ => panic!("Invalid blocktype {}", typ), + _ => panic!("Invalid blocktype {typ}"), } } }