From 366ca24ac1d45cbe9e862d9d721bd9c73f7091b6 Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Mon, 20 Jan 2025 13:01:23 -0800 Subject: [PATCH] drive-by clippy fixes --- crates/enostr/src/pubkey.rs | 2 +- crates/notedeck/src/note.rs | 2 +- crates/notedeck_chrome/src/notedeck.rs | 2 +- crates/notedeck_chrome/src/preview.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/enostr/src/pubkey.rs b/crates/enostr/src/pubkey.rs index a4ca18e..3def384 100644 --- a/crates/enostr/src/pubkey.rs +++ b/crates/enostr/src/pubkey.rs @@ -14,7 +14,7 @@ pub struct PubkeyRef<'a>(&'a [u8; 32]); static HRP_NPUB: bech32::Hrp = bech32::Hrp::parse_unchecked("npub"); -impl<'a> Borrow<[u8; 32]> for PubkeyRef<'a> { +impl Borrow<[u8; 32]> for PubkeyRef<'_> { fn borrow(&self) -> &[u8; 32] { self.0 } diff --git a/crates/notedeck/src/note.rs b/crates/notedeck/src/note.rs index ab7ce8b..4c351b1 100644 --- a/crates/notedeck/src/note.rs +++ b/crates/notedeck/src/note.rs @@ -76,7 +76,7 @@ impl Borrow<[u8; 32]> for RootNoteIdBuf { } } -impl<'a> Borrow<[u8; 32]> for RootNoteId<'a> { +impl Borrow<[u8; 32]> for RootNoteId<'_> { fn borrow(&self) -> &[u8; 32] { self.0 } diff --git a/crates/notedeck_chrome/src/notedeck.rs b/crates/notedeck_chrome/src/notedeck.rs index dd1c2df..20a3787 100644 --- a/crates/notedeck_chrome/src/notedeck.rs +++ b/crates/notedeck_chrome/src/notedeck.rs @@ -75,7 +75,7 @@ async fn main() { let args: Vec = std::env::args().collect(); let ctx = &cc.egui_ctx; let mut notedeck = Notedeck::new(ctx, base_path, &args); - setup_chrome(ctx, ¬edeck.args(), notedeck.theme()); + setup_chrome(ctx, notedeck.args(), notedeck.theme()); let damus = Damus::new(&mut notedeck.app_context(), &args); // TODO: move "chrome" frame over Damus app somehow diff --git a/crates/notedeck_chrome/src/preview.rs b/crates/notedeck_chrome/src/preview.rs index 9bb21b3..45ab33a 100644 --- a/crates/notedeck_chrome/src/preview.rs +++ b/crates/notedeck_chrome/src/preview.rs @@ -33,7 +33,7 @@ impl PreviewRunner { let ctx = &cc.egui_ctx; let mut notedeck = Notedeck::new(ctx, &base_path, &args); - setup_chrome(ctx, ¬edeck.args(), notedeck.theme()); + setup_chrome(ctx, notedeck.args(), notedeck.theme()); notedeck.set_app(PreviewApp::new(preview));