notecrumbs

a nostr opengraph server build on nostrdb and egui
git clone git://jb55.com/notecrumbs
Log | Files | Refs | README | LICENSE

commit 5a0c49c42f04bee8aa4a5fcb7ccf398bd24404ec
parent 9a7722e684910d5373b4d9d6a21e94861444a934
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 18 Dec 2025 11:27:45 -0800

clippy fixes

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

Diffstat:
Msrc/html.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/html.rs b/src/html.rs @@ -230,7 +230,7 @@ fn ends_with(haystack: &str, needle: &str) -> bool { } fn base_url(url: &str) -> &str { - let end = url.find(|c| c == '?' || c == '#').unwrap_or(url.len()); + let end = url.find(['?', '#']).unwrap_or(url.len()); &url[..end] } @@ -315,6 +315,7 @@ pub fn render_note_content(body: &mut Vec<u8>, note: &Note, blocks: &Blocks) { } } +#[allow(clippy::too_many_arguments)] fn build_note_content_html( app: &Notecrumbs, note: &Note, @@ -355,6 +356,7 @@ fn build_note_content_html( ) } +#[allow(clippy::too_many_arguments)] fn build_article_content_html( author_display: &str, pfp_url: &str,